source: lmdz_wrf/WRFV3/clean @ 1

Last change on this file since 1 was 1, checked in by lfita, 10 years ago
  • -- --- Opening of the WRF+LMDZ coupling repository --- -- -

WRF: version v3.3
LMDZ: version v1818

More details in:

  • Property svn:executable set to *
File size: 2.0 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
23set echo
24set arg="$1"
25if ( "$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  endif
38  /bin/rm -fr ./netcdf_links
39  /bin/rm -fr tools/code_dbase
40  ( cd external ; make -i superclean )
41  ( cd external/io_grib1/WGRIB ; make clean )
42  ( cd external/atm_ocn ; make clean )
43  ( cd tools ; /bin/rm -f registry gen_comms.c fseeko_test fseeko64_test )
44  ( cd inc; /bin/rm -f dm_comm_cpp_flags wrf_io_flags.h wrf_status_codes.h )
45  if ( "$arg" != '-aa' ) then
46    ( cd run ; /bin/rm -f gm* out* fort* ideal* *.exe ; \
47          /bin/cp -f namelist.input namelist.input.backup ; \
48          /bin/rm -f namelist.input ) >& /dev/null
49    ( cd test/exp_real ; /bin/rm -f gm* out* fort* real* )
50    ( cd test ; rm -f */*.exe */ETAMPNEW_DATA */GENPARM.TBL */LANDUSE.TBL */README.namelist \
51          */RRTM_DATA */SOILPARM.TBL */VEGPARM.TBL */URBPARM.TBL */grib2map.tbl \
52          */CAM_ABS_DATA */CAM_AEROPT_DATA */RRTMG_LW_DATA */RRTMG_SW_DATA \
53          */ozone.formatted */ozone_lat.formatted */ozone_plev.formatted \
54          */gribmap.txt */tr??t?? */co2_trans) >& /dev/null
55  ( cd lmdz ; make clean )
56  endif
57endif
58
59#cms++
60
61if ( -d chem ) then
62  if ( -e chem/KPP )then
63    ( cd chem/KPP; ./clean_kpp ) 
64  endif
65endif
66#cms--
Note: See TracBrowser for help on using the repository browser.