[Dart-dev] DART/branches Revision: 12120

dart at ucar.edu dart at ucar.edu
Thu Nov 16 22:14:55 MST 2017


thoar at ucar.edu
2017-11-16 22:14:53 -0700 (Thu, 16 Nov 2017)
94
The setup and config scripts are pretty decent.
The assimilate and pmo scripts are untested.




Modified: DART/branches/cesm_clm/models/clm/shell_scripts/CESM2_0/CESM2_0_DART_config
===================================================================
--- DART/branches/cesm_clm/models/clm/shell_scripts/CESM2_0/CESM2_0_DART_config	2017-11-17 03:54:01 UTC (rev 12119)
+++ DART/branches/cesm_clm/models/clm/shell_scripts/CESM2_0/CESM2_0_DART_config	2017-11-17 05:14:53 UTC (rev 12120)
@@ -45,12 +45,17 @@
 
 cd BOGUS_CASEROOT_STRING
 
-# DARTROOT is set by the DART CESM_configure scripts. Under certain
-# situations, you may need to set this manually. It should reference the
-# base portion of the DART code tree.
+# OBSROOT  should reference the stockpile of observation sequence files.
+# DARTROOT should reference the base portion of the DART code tree.
+# Both of these should be set by the DART CESM setup script.
 
-setenv DARTROOT  BOGUS_DART_ROOT_STRING
-setenv CASEROOT `./xmlquery CASEROOT --value`
+setenv OBSROOT       BOGUS_DART_OBS_STRING
+setenv DARTROOT      BOGUS_DART_ROOT_STRING
+setenv EXEROOT       `./xmlquery EXEROOT    --value`
+setenv RUNDIR        `./xmlquery RUNDIR    --value`
+setenv CASEROOT      `./xmlquery CASEROOT  --value`
+setenv CASE          `./xmlquery CASE      --value`
+setenv num_instances `./xmlquery NINST_LND --value`
 
 # ==============================================================================
 # Some
@@ -92,7 +97,7 @@
    if ( ! -d $DIR ) then
       echo "ERROR: directory '$DIR' not found"
       echo "       In the setup script check the setting of: $VAR"
-      exit -1
+      exit 1
    endif
 end
 
@@ -103,7 +108,7 @@
 # ==============================================================================
 
 foreach MODEL ( clm )
-   set targetdir = $DARTROOT/models/$MODEL/work
+   set targetdir = ${DARTROOT}/models/$MODEL/work
    if ( ! -x $targetdir/filter ) then
       echo ""
       echo "WARNING: executable file 'filter' not found."
@@ -115,7 +120,7 @@
          echo "       Unsuccessfully tried to rebuild: $targetdir/filter "
          echo "       Required DART assimilation executables are not found."
          echo "       Stopping prematurely."
-         exit -1
+         exit 2
       endif
    endif
 end
@@ -124,25 +129,13 @@
 # Stage the required parts of DART in the CASEROOT directory.
 # ==============================================================================
 
-# The standard CESM short-term archiving script may need to be altered
-# to archive additional or subsets of things, or to reduce the amount of
-# data that is sent to the long-term archive.  Put a version of st_archive.sh
-# in  ${DARTROOT}/models/CESM/shell_scripts when/if necessary
+${COPY} ${DARTROOT}/models/clm/shell_scripts/CESM2_0/assimilate.csh     . || exit 3
+${COPY} ${DARTROOT}/models/clm/shell_scripts/CESM2_0/perfect_model.csh  . || exit 3
+${COPY} ${DARTROOT}/models/clm/shell_scripts/CESM2_0/no_assimilate.csh  . || exit 3
 
-if (            ! -e           Tools/st_archive.sh.original ) then
-   ${COPY} Tools/st_archive.sh Tools/st_archive.sh.original
-else
-   echo "Tools/st_archive.sh backup copy already exists."
-   echo ""
-endif
-
-${COPY} ${DARTROOT}/models/clm/shell_scripts/st_archive.sh           Tools/
-${COPY} ${DARTROOT}/models/clm/shell_scripts/assimilate.csh          .
-${COPY} ${DARTROOT}/models/clm/shell_scripts/perfect_model.csh       .
-${COPY} ${DARTROOT}/shell_scripts/shell_exit.sh                      .
-${COPY} ${DARTROOT}/assimilation_code/programs/gen_sampling_err_table/work/sampling_error_correction_table.nc ${RUNDIR}
-
 # The file needed for SAMPLING ERROR CORRECTION is small and may be needed later.
+set LONGNAME = ${DARTROOT}/assimilation_code/programs/gen_sampling_err_table/work
+${COPY} ${LONGNAME}/sampling_error_correction_table.nc ${RUNDIR}          || exit 3
 
 # ==============================================================================
 # Stage the DART executables in the CESM execution root directory: EXEROOT
@@ -177,11 +170,9 @@
    fi
 else
    echo "ERROR: stage_dart_files could not find an input.nml.  Aborting"
-   exit -99
+   exit 4
 fi
 
-${COPY} ${DARTROOT}/models/clm/work/clm_to_dart       ${EXEROOT}
-${COPY} ${DARTROOT}/models/clm/work/dart_to_clm       ${EXEROOT}
 ${COPY} ${DARTROOT}/models/clm/work/filter            ${EXEROOT}
 ${COPY} ${DARTROOT}/models/clm/work/perfect_model_obs ${EXEROOT}
 
@@ -190,7 +181,7 @@
 EndOfText
 chmod 0755 stage_dart_files


More information about the Dart-dev mailing list