| 1 | #!/bin/csh -f |
|---|
| 2 | |
|---|
| 3 | set nonomatch |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | foreach 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 |
|---|
| 12 | end |
|---|
| 13 | |
|---|
| 14 | if ( -d var ) then |
|---|
| 15 | ( cd var ; make clean ) |
|---|
| 16 | endif |
|---|
| 17 | |
|---|
| 18 | ( cd tools/CodeBase ; make clean ) |
|---|
| 19 | |
|---|
| 20 | ( cd inc ; /bin/rm -f *.inc namelist.default ) |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | set echo |
|---|
| 24 | set arg="$1" |
|---|
| 25 | if ( "$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 |
|---|
| 57 | endif |
|---|
| 58 | |
|---|
| 59 | #cms++ |
|---|
| 60 | |
|---|
| 61 | if ( -d chem ) then |
|---|
| 62 | if ( -e chem/KPP )then |
|---|
| 63 | ( cd chem/KPP; ./clean_kpp ) |
|---|
| 64 | endif |
|---|
| 65 | endif |
|---|
| 66 | #cms-- |
|---|