fixing interface of propagate to maintain state
[wrffire.git] / wrfv2_fire / clean
blobd122d45910c9e8415ed9f5c5f7462a054c192b6f
1 #!/bin/csh -f
3 set nonomatch
6 foreach dir ( frame chem share dyn_em dyn_exp dyn_nmm phys main tools )
7 if ( -d $dir ) then
8 ( cd $dir ; echo $dir ; /bin/rm -f core wrf *.f90 *.exe *.kmo *.mod *.o *.obj *.inc *.F90 *.a \
9 db_* Warnings module_state_description.F module_dm.F gmeta \
10 wrfdata whatiread rsl.* show_domain* )
11 endif
12 end
14 if ( -d var ) then
15 ( cd var ; make clean )
16 endif
18 ( cd tools/CodeBase ; make clean )
20 ( cd inc ; /bin/rm -f *.inc namelist.default )
23 set echo
24 set arg="$1"
25 if ( "$arg" == '-a' || "$arg" == '-aa' ) then
26 if ( -d var ) then
27 ( cd var ; make superclean )
28 ( cd var/obsproc ; make clean )
29 endif
30 if ( -f configure.wrf ) then
31 /bin/cp configure.wrf configure.wrf.backup
32 /bin/rm -f configure.wrf
33 endif
34 if ( -f Registry/Registry ) then
35 /bin/cp Registry/Registry Registry/Registry.backup
36 /bin/rm -f Registry/Registry
37 /bin/rm -f Registry/io_boilerplate_temporary.inc
38 endif
39 /bin/rm -fr ./netcdf_links
40 /bin/rm -fr tools/code_dbase
41 ( cd external ; make -i superclean )
42 ( cd external/io_grib1/WGRIB ; make clean )
43 ( cd external/atm_ocn ; make clean )
44 ( cd tools ; /bin/rm -f registry gen_comms.c fseeko_test fseeko64_test )
45 ( cd inc; /bin/rm -f dm_comm_cpp_flags wrf_io_flags.h wrf_status_codes.h )
46 if ( "$arg" != '-aa' ) then
47 ( cd run ; /bin/rm -f gm* out* fort* ideal* *.exe ; \
48 /bin/cp -f namelist.input namelist.input.backup ; \
49 /bin/rm -f namelist.input ) >& /dev/null
50 ( cd test/exp_real ; /bin/rm -f gm* out* fort* real* )
51 ( cd test ; rm -f */*.exe */ETAMPNEW_DATA* */GENPARM.TBL */LANDUSE.TBL */README.namelist \
52 */RRTM_DATA */SOILPARM.TBL */VEGPARM.TBL */MPTABLE.TBL */URBPARM.TBL */grib2map.tbl \
53 */CAM_ABS_DATA */CAM_AEROPT_DATA */RRTMG_LW_DATA */RRTMG_SW_DATA \
54 */ozone.formatted */ozone_lat.formatted */ozone_plev.formatted \
55 */gribmap.txt */tr??t?? */co2_trans */namelist.output ) >& /dev/null
56 else if ( "$arg" == '-aa' ) then
57 /bin/rm -f configure.wrf.backup
58 /bin/rm -f Registry/Registry.backup
59 /bin/rm -f run/namelist.input.backup
60 endif
61 endif
63 #cms++
65 if ( -d chem ) then
66 if ( -e chem/KPP )then
67 ( cd chem/KPP; ./clean_kpp )
68 endif
69 endif
70 #cms--