[Dart-dev] [5455] DART/branches/development/models/cam/shell_scripts/setup_cesm_case. ned.csh: latest changes to the namelists ( the history files were causing restart

nancy at ucar.edu nancy at ucar.edu
Fri Dec 16 10:50:40 MST 2011


Revision: 5455
Author:   nancy
Date:     2011-12-16 10:50:39 -0700 (Fri, 16 Dec 2011)
Log Message:
-----------
latest changes to the namelists (the history files were causing restart
problems), clean up and make more consistent with the version tim's running.

Modified Paths:
--------------
    DART/branches/development/models/cam/shell_scripts/setup_cesm_case.ned.csh

-------------- next part --------------
Modified: DART/branches/development/models/cam/shell_scripts/setup_cesm_case.ned.csh
===================================================================
--- DART/branches/development/models/cam/shell_scripts/setup_cesm_case.ned.csh	2011-12-16 17:48:59 UTC (rev 5454)
+++ DART/branches/development/models/cam/shell_scripts/setup_cesm_case.ned.csh	2011-12-16 17:50:39 UTC (rev 5455)
@@ -64,23 +64,25 @@
 # ================================
 
 # my home, and temp/scratch space
-setenv my_home $HOME
-setenv my_scratch $SCRATCH
+setenv nancy_home $HOME
+setenv nancy_scratch $SCRATCH
 
 setenv mach hopp2                                       ;# machine - must match cesm names
+setenv DARTdir ${nancy_home}/devel
+
 setenv cesm_datadir /project/projectdirs/ccsm1/inputdata
 
-setenv ccsmroot ${my_home}/${ccsmtag}                   ;# this is where the cesm code lives
+setenv ccsmroot ${nancy_home}/${ccsmtag}                   ;# this is where the cesm code lives
 #setenv ccsmroot ${cesm_public}/collections/${ccsmtag}  ;# this is where the cesm code lives
 
-setenv caseroot ${my_home}/cases/$case                  ;## your cesm case directory
-setenv lockroot ${my_home}/locked_cases                 ;## locked cases
-setenv rundir ${my_scratch}/${case}
+setenv caseroot ${nancy_home}/cases/$case                  ;## your cesm case directory
+setenv lockroot ${nancy_home}/locked_cases                 ;## locked cases
+setenv rundir   ${nancy_scratch}/${case}
+setenv archdir  ${nancy_scratch}/archive
 
-setenv DARTdir ${my_home}/devel
 
 # for data files not in the public cems area
-setenv my_datadir ${my_scratch}/cesm_datafiles
+setenv nancy_datadir ${nancy_scratch}/cesm_datafiles
 
 # ======================
 # clear out previous builds
@@ -131,21 +133,30 @@
  aerodep_flx_cycle_yr         = 2000
  aerodep_flx_type             = 'CYCLICAL'
  iradae                       = -12
- empty_htapes                 = .true.
- nhtfrq                       = -12
 /
 EOF
 
+# kevin had these in his cam namelist but they seem to cause
+# problems with the restart files with cesm.
+#  empty_htapes                 = .true.
+#  nhtfrq                       = -12
+
 cat <<EOF >! user_nl_clm_${case}
 &clmexp
   fatmgrid = '${cesm_datadir}/lnd/clm2/griddata/griddata_0.9x1.25_070212.nc'
-  faerdep  = '${cesm_datadir}/atm/cam/chem/trop_mozart_aero/aero/aerosoldep_rcp4.5_monthly_1849-2104_0.9x1.25_c100407.nc'
+  faerdep  = '${nancy_datadir}/aerosoldep_rcp4.5_monthly_1849-2104_0.9x1.25_c100407.nc'
   outnc_large_files = .true.
-  hist_nhtfrq = -12
-  hist_empty_htapes = .true.
 /
 EOF
 
+# where it would be in the cesm datadir; not on hopper:
+#  faerdep  = '${cesm_datadir}/atm/cam/chem/trop_mozart_aero/aero/aerosoldep_rcp4.5_monthly_1849-2104_0.9x1.25_c100407.nc'
+
+# kevin had these in his clm namelist but they seem to cause
+# problems with the restart files with cesm.
+#  hist_nhtfrq = -12
+#  hist_empty_htapes = .true.
+
 # ====================================================================
 # ====  End of case options
 # ====================================================================
@@ -167,7 +178,7 @@
 
 ./xmlchange -file env_build.xml    -id EXEROOT        -val ${rundir}
 ./xmlchange -file env_build.xml    -id USE_ESMF_LIB   -val TRUE
-#./xmlchange -file env_build.xml    -id ESMF_LIBDIR    -val ${nancy_scratch}/esmf-mpi
+./xmlchange -file env_build.xml    -id ESMF_LIBDIR    -val ${nancy_scratch}/esmf-mpi
 
 set num_tasks_per_instance = 2
 set nthreads = 6
@@ -220,8 +231,9 @@
 # ====================================================================
 # Update source files if need be
 # ====================================================================
-cp ~/cesm_mods/seq*F90  $caseroot/SourceMods/src.drv
-cp ~/cesm_mods/hist*F90 $caseroot/SourceMods/src.clm
+cp ~/cesm_mods/seq*F90           $caseroot/SourceMods/src.drv
+cp ~/cesm_mods/hist*F90          $caseroot/SourceMods/src.clm
+cp ~/cesm_mods/ccsm_comp_mod.F90 $caseroot/SourceMods/src.drv
 
 if ( $status == 0) then
    echo "FYI - Local Source Modifications used for this case:"
@@ -250,6 +262,8 @@
 
 \mv Tools/st_archive.sh Tools/st_archive.sh.org
 \cp -f ${DARTdir}/models/cam/shell_scripts/st_archive.sh Tools/st_archive.sh
+# only needed for beta04 - fixed in more recent versions
+\cp -f ${ccsmroot}/scripts/ccsm_utils/Tools/lt_archive.csh Tools/lt_archive.csh
 
 \cp -f ${DARTdir}/models/cam/shell_scripts/assimilate.ned.csh assimilate.csh
 
@@ -402,7 +416,7 @@
 # Stage the restarts now that the run directory exists
 # ====================================================================
 
-set stagedir = ${my_scratch}/ned_datafiles
+set stagedir = ${nancy_scratch}/ned_datafiles
 
 echo ''
 echo "Staging the restarts from {$stagedir}"


More information about the Dart-dev mailing list