[Dart-dev] DART/branches Revision: 13073

dart at ucar.edu dart at ucar.edu
Mon Mar 25 16:50:01 MDT 2019


raeder at ucar.edu
2019-03-25 16:50:01 -0600 (Mon, 25 Mar 2019)
1020
This is hopefully the final commit of the rma_recam cesm2_1 scripts
   before merging the recam branch back onto the rma_trunk.
Setup_* scripts were made more consistent, but more remains to be done.
In some setup_* scripts the $rundir and $exedir were replaced by $cime_output,
   and the description of the resulting directories creation was made clearer.
Standardized command definitions were made more flexible
   by removing the arguments from them (-f -v -r)
   and implementing a verbose argument variable.

Several files were added:
   setup_advanced_Rean_2017; 
      An archiving of the script that set up the Reanalysis test for 2017.
      It's an example of how to set up setup_advanced.
   mv_to_campaign.csh;       
      Non-tested (so non-working) version of a script intended to use
      the command line interface to globus to move output to Campaign Storage.

Several were deleted because they were used for debugging a particular problem:
   setup_CESM2_1_80
   setup_netcdf_6Zstart
   setup_test




Modified: DART/branches/recam/models/cam-fv/shell_scripts/cesm2_1/DART_config.template
===================================================================
--- DART/branches/recam/models/cam-fv/shell_scripts/cesm2_1/DART_config.template	2019-03-25 21:56:04 UTC (rev 13072)
+++ DART/branches/recam/models/cam-fv/shell_scripts/cesm2_1/DART_config.template	2019-03-25 22:50:01 UTC (rev 13073)
@@ -20,8 +20,8 @@
 # This script will try to build the DART executables if they are not found.
 # This might result in a preproc_nml being used, which is wrong for your observation set.
 #
-# There are many CESM binary files in big-endian format, and DART reads
-# some of them, so you MUST compile DART accordingly e.g.,
+# There may be CESM binary files in big-endian format, and DART reads some of them, 
+# so you MUST compile DART accordingly e.g.,
 # ifort -convert big_endian
 # Contact dart at ucar.edu if you want to use another compiler.
 #
@@ -29,12 +29,18 @@
 # How to set up the script
 # ---------------------
 #
-# -- Copy and rename this script into the $CASEROOT directory.
-#    > cp DART_config.template $CASEROOT/DART_config
-# -- Ensure DARTROOT references a valid DART directory.
+# -- > cd $CASEROOT
+# -- Script DART_config should have been created there by setup_{hybrid,advanced,...}
+# -- If not, copy and rename this script into the $CASEROOT directory.
+#    > cp  $DART_CESM_scripts/DART_config.template  $CASEROOT/DART_config
+# -- Ensure the following variables are set correctly;
+#       DARTROOT               references a valid DART directory.
+#       DART_SCRIPTS_DIR       $DARTROOT/models/cam-fv/shell_scripts/your_setup_script_dir
+#       BASEOBSDIR             your_observation_path
+#       SAVE_EVERY_MTH_RESTART days_between_archiving_restarts
 # -- Examine the whole script to identify things to change for your experiments.
 #    This includes choosing [no_]assimilate.csh.
-# -- Provide any initial inflation files needed by your run
+# -- Optionally provide any initial inflation files needed by your run.
 # -- Run this script.
 #    > ./DART_config | & tee DART_config.out1  
 # -- Edit the DART input.nml, that appears in the ${CASEROOT} directory,
@@ -115,13 +121,15 @@
 
 set nonomatch       # suppress "rm" warnings if wildcard does not match anything
 
-# The FORCE options are not optional.
-# The VERBOSE options are useful for debugging though
-# some systems don't like the -v option to any of the following.
-set   MOVE = '/bin/mv -f'
-set   COPY = '/bin/cp -f --preserve=timestamps'
-set   LINK = '/bin/ln -fs'
-set REMOVE = '/bin/rm -fr'
+# If the -f argument is needed, it is added to commands where they are used.
+# The verbose (-v) argument has been separated from these command definitions
+# because these commands may not accept it on some systems.  On those systems
+# set VERBOSE = ''
+set VERBOSE = '-v'
+set    MOVE = '/usr/bin/mv'
+set    COPY = '/usr/bin/cp --preserve=timestamps'
+set    LINK = '/usr/bin/ln'
+set  REMOVE = '/usr/bin/rm'
 
 echo ""
 
@@ -183,7 +191,7 @@
 # chmod 755 perfect_model.csh
 
 if (-f ${DART_SCRIPTS_DIR}/compress.csh) then
-   $COPY ${DART_SCRIPTS_DIR}/compress.csh . 
+   $COPY -f -${VERBOSE} ${DART_SCRIPTS_DIR}/compress.csh . || exit 43
 else
    echo "ERROR: no compress.csh in  ${DART_SCRIPTS_DIR}"
    exit 45
@@ -212,11 +220,11 @@
    if [[ -e input.nml.original ]]; then
       echo "input.nml.original already exists - not making another"
    else
-      ${COPY} input.nml input.nml.original
+      ${COPY} ${VERBOSE} input.nml input.nml.original
    fi
 
 elif [[ -e ${DARTROOT}/models/cam-fv/work/input.nml ]]; then
-   ${COPY} ${DARTROOT}/models/cam-fv/work/input.nml  input.nml
+   ${COPY} ${VERBOSE} ${DARTROOT}/models/cam-fv/work/input.nml  input.nml
    if [[ -x update_dart_namelists ]]; then
           ./update_dart_namelists
    fi
@@ -225,9 +233,9 @@
    exit 50
 fi
 
-${COPY} ${DARTROOT}/models/cam-fv/work/filter                 ${EXEROOT}
-${COPY} ${DARTROOT}/models/cam-fv/work/perfect_model_obs      ${EXEROOT}
-${COPY} ${DARTROOT}/models/cam-fv/work/fill_inflation_restart ${EXEROOT}
+${COPY} -f ${DARTROOT}/models/cam-fv/work/filter                 ${EXEROOT} || exit 55
+${COPY} -f ${DARTROOT}/models/cam-fv/work/perfect_model_obs      ${EXEROOT} || exit 56
+${COPY} -f ${DARTROOT}/models/cam-fv/work/fill_inflation_restart ${EXEROOT} || exit 57
 
 exit 0
 
@@ -312,7 +320,7 @@
    set SAMP_ERR_FILE = ${DARTROOT}/${SAMP_ERR_DIR}/sampling_error_correction_table.nc
 
    if (  -e   ${SAMP_ERR_FILE} ) then


More information about the Dart-dev mailing list