-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathclean
executable file
·50 lines (41 loc) · 1.62 KB
/
clean
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/csh -f
set nonomatch
foreach dir ( frame chem share dyn_em dyn_exp dyn_nmm phys main tools )
( cd $dir ; echo $dir ; /bin/rm -f core wrf *.f90 *.exe *.kmo *.mod *.o *.obj *.inc *.F90 *.a \
db_* Warnings module_state_description.F module_dm.F gmeta \
wrfdata whatiread rsl.* show_domain* )
end
( cd da ; make clean )
( cd tools/CodeBase ; make clean )
( cd inc ; /bin/rm -f *.inc namelist.default )
if ( "$1" == '-a' ) then
( cd da ; make superclean )
if ( -f configure.wrf ) then
/bin/cp configure.wrf configure.wrf.backup
/bin/rm -f configure.wrf
endif
if ( -f Registry/Registry ) then
/bin/cp Registry/Registry Registry/Registry.backup
/bin/rm -f Registry/Registry
endif
/bin/rm -fr ./netcdf_links
/bin/rm -fr tools/code_dbase
( cd external ; make -i superclean )
( cd external/io_grib1/WGRIB ; make clean )
( cd tools ; /bin/rm -f registry gen_comms.c fseeko_test fseeko64_test )
( cd inc; /bin/rm -f dm_comm_cpp_flags wrf_io_flags.h wrf_status_codes.h )
( cd run ; /bin/rm -f gm* out* fort* ideal* *.exe ; \
/bin/cp -f namelist.input namelist.input.backup ; \
/bin/rm -f namelist.input ) >& /dev/null
( cd test/exp_real ; /bin/rm -f gm* out* fort* real* )
( cd test ; rm -f */*.exe */ETAMPNEW_DATA */GENPARM.TBL */LANDUSE.TBL */README.namelist \
*/RRTM_DATA */SOILPARM.TBL */VEGPARM.TBL */urban_param.tbl */grib2map.tbl \
*/CAM_ABS_DATA */CAM_AEROPT_DATA \
*/ozone.formatted */ozone_lat.formatted */ozone_plev.formatted \
*/gribmap.txt */tr??t?? ) >& /dev/null
endif
#cms++
if ( -e chem/KPP )then
( cd chem/KPP; ./clean_kpp )
endif
#cms--