6 foreach dir
( frame chem share dyn_em dyn_exp dyn_nmm phys main tools
)
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
* )
15 ( cd var
; make clean
)
18 ( cd tools
/CodeBase
; make clean
)
20 ( cd inc
; /bin
/rm -f *.inc namelist.default
)
25 if ( "$arg" == '-a' ||
"$arg" == '-aa' ) then
27 ( cd var
; make superclean
)
28 ( cd var
/obsproc
; make clean
)
30 if ( -f configure.wrf
) then
31 /bin
/cp configure.wrf configure.wrf.backup
32 /bin
/rm -f configure.wrf
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
39 /bin
/rm -fr .
/netcdf_links
40 /bin
/rm -fr tools
/code_dbase
41 ( cd external
; make -i superclean
)
42 ( cd external
/io_grib
1/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
66 if ( -e chem
/KPP
)then
67 ( cd chem
/KPP
; .
/clean_kpp
)