-
Notifications
You must be signed in to change notification settings - Fork 0
/
clean
executable file
·88 lines (76 loc) · 3 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/csh -f
set nonomatch
foreach dir ( frame chem share dyn_em dyn_exp dyn_nmm phys main tools )
if ( -d $dir ) then
( 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* )
endif
end
if ( -d var ) then
( cd var ; make clean )
endif
( cd tools/CodeBase ; make clean )
( cd inc ; /bin/rm -f *.inc namelist.default )
set echo
set arg="$1"
if ( "$arg" == '-a' || "$arg" == '-aa' ) then
if ( -d var ) then
( cd var ; make superclean )
( cd var/obsproc ; make clean )
endif
if ( -f Registry/Registry ) then
/bin/cp Registry/Registry Registry/Registry.backup
/bin/rm -f Registry/Registry
/bin/rm -f Registry/io_boilerplate_temporary.inc
if ( -f Registry/Registry.rconfig ) then
/bin/rm -f Registry/Registry.rconfig
endif
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 external/atm_ocn ; make clean )
( cd tools ; /bin/rm -f registry gen_comms.c fseeko_test fseeko64_test nc4_test.log )
( cd inc; /bin/rm -f dm_comm_cpp_flags wrf_io_flags.h wrf_status_codes.h )
if ( -f configure.wrf ) then
/bin/cp configure.wrf configure.wrf.backup
/bin/rm -f configure.wrf
endif
if ( "$arg" != '-aa' ) then
( cd run ; /bin/rm -f gm* out* fort* ideal* *.exe input_sounding ; \
/bin/cp -f namelist.input namelist.input.backup.`date +%Y-%m-%d_%H_%M_%S` ; \
/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 */MPTABLE.TBL */URBPARM.TBL */grib2map.tbl \
*/CAM_ABS_DATA */CAM_AEROPT_DATA \
*/CCN_ACTIVATE.BIN \
*/CAMtr_volume_mixing_ratio.RCP4.5 */CAMtr_volume_mixing_ratio.RCP6 */CAMtr_volume_mixing_ratio.RCP8.5 \
*/CAMtr_volume_mixing_ratio.A1B */CAMtr_volume_mixing_ratio.A2 */CAMtr_volume_mixing_ratio \
*/CLM_*DATA */RRTMG_LW_DATA */RRTMG_SW_DATA \
*/ozone.formatted */ozone_lat.formatted */ozone_plev.formatted \
*/aerosol.formatted */aerosol_lat.formatted */aerosol_plev.formatted */aerosol_lon.formatted \
*/kernels.asc_s_0_03_0_9 */bulkradii.asc_s_0_03_0_9 */bulkdens.asc_s_0_03_0_9 \
*/constants.asc */p3_lookup_table_1.dat \
*/masses.asc */kernels_z.asc */capacity.asc */termvels.asc */coeff_p.asc */coeff_q.asc \
*/gribmap.txt */tr??t?? */co2_trans */namelist.output ) >& /dev/null
else if ( "$arg" == '-aa' ) then
/bin/rm -f configure.wrf.backup
/bin/rm -f Registry/Registry.backup
/bin/rm -f run/namelist.input.backup.*
endif
endif
#cms++
if ( -d chem ) then
if ( -e chem/KPP )then
( cd chem/KPP; ./clean_kpp )
endif
endif
#cms--
#wrf_hydro++
if ( -e "hydro/Makefile.comm" ) then
(cd hydro; make -f Makefile.comm clean)
endif
#wrf_hydro--