source: trunk/WRF.COMMON/WRFV3/clean @ 3094

Last change on this file since 3094 was 2759, checked in by aslmd, 2 years ago

adding unmodified code from WRFV3.0.1.1, expurged from useless data +1M size

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#!/bin/csh -f
2
3set nonomatch
4
5
6foreach 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
12end
13
14if ( -d var ) then
15  ( cd var ; make clean )
16endif
17
18( cd tools/CodeBase ; make clean )
19
20( cd inc ; /bin/rm -f *.inc namelist.default )
21
22
23if ( "$1" == '-a' ) then
24  if ( -d var ) then
25    ( cd var ; make superclean )
26  endif
27  if ( -f configure.wrf ) then
28    /bin/cp configure.wrf configure.wrf.backup
29    /bin/rm -f configure.wrf
30  endif
31  if ( -f Registry/Registry ) then
32    /bin/cp Registry/Registry Registry/Registry.backup
33    /bin/rm -f Registry/Registry
34  endif
35  /bin/rm -fr ./netcdf_links
36  /bin/rm -fr tools/code_dbase
37  ( cd external ; make -i superclean )
38  ( cd external/io_grib1/WGRIB ; make clean )
39  ( cd tools ; /bin/rm -f registry gen_comms.c fseeko_test fseeko64_test )
40  ( cd inc; /bin/rm -f dm_comm_cpp_flags wrf_io_flags.h wrf_status_codes.h )
41  ( cd run ; /bin/rm -f gm* out* fort* ideal* *.exe ; \
42        /bin/cp -f namelist.input namelist.input.backup ; \
43        /bin/rm -f namelist.input ) >& /dev/null
44  ( cd test/exp_real ; /bin/rm -f gm* out* fort* real* )
45  ( cd test ; rm -f */*.exe */ETAMPNEW_DATA */GENPARM.TBL */LANDUSE.TBL */README.namelist \
46        */RRTM_DATA */SOILPARM.TBL */VEGPARM.TBL */urban_param.tbl */grib2map.tbl \
47        */CAM_ABS_DATA */CAM_AEROPT_DATA \
48        */ozone.formatted */ozone_lat.formatted */ozone_plev.formatted \
49        */gribmap.txt */tr??t?? ) >& /dev/null
50endif
51
52#cms++
53
54if ( -d chem ) then
55  if ( -e chem/KPP )then
56    ( cd chem/KPP; ./clean_kpp ) 
57  endif
58endif
59#cms--
Note: See TracBrowser for help on using the repository browser.