[Dart-dev] DART/branches Revision: 13033

dart at ucar.edu dart at ucar.edu
Tue Mar 19 17:19:53 MDT 2019


raeder at ucar.edu
2019-03-19 17:19:53 -0600 (Tue, 19 Mar 2019)
219
This script is intended to help with debugging,
but enabling a single forecast to start from any ensemble member
of an assimilation.

It has not been reviewed, or tested in the CESM2_1 context.
It worked with CESM2_0.




Added: DART/branches/recam/models/cam-fv/shell_scripts/cesm2_1/setup_single_from_ens
===================================================================
--- DART/branches/recam/models/cam-fv/shell_scripts/cesm2_1/setup_single_from_ens	                        (rev 0)
+++ DART/branches/recam/models/cam-fv/shell_scripts/cesm2_1/setup_single_from_ens	2019-03-19 23:19:53 UTC (rev 13033)
@@ -0,0 +1,823 @@
+#!/bin/csh -f
+
+#--------------------------------------------
+# The job name should be the name of this script(file), 
+# or this file may not be archived in $caseroot causing DART_config to fail.
+#PBS  -N setup_single_from_ens
+
+#PBS  -A P86850054
+# #PBS  -A your_account_there
+# #PBS  -q shared_node_queue_for_this_setup_script
+#PBS  -q share
+# Resources I want:
+#    select=#nodes
+#    ncpus=#CPUs/node
+#    mpiprocs=#MPI_tasks/node
+#PBS  -l select=1:ncpus=2:mpiprocs=2
+#PBS  -l walltime=00:30:00
+
+# Send email after a(bort) or e(nd)
+#PBS  -m ae
+#PBS  -M you at email.org
+# #PBS  -M raeder at ucar.edu
+
+# Send standard output and error to this file.
+# It's helpful to use the $casename here.
+#PBS  -o Fixed_leap_day.bld1
+#PBS  -j oe 
+#--------------------------------------------
+
+# ---------------------
+# Purpose
+#
+# This script is designed to set up, stage, and build a single-instance run
+# of CESM2 using an Fxxx compset, in which CAM, CLM, and CICE are active
+# and the initial conditions are taken from a single instance of a
+# multi-instance CAM forecast (the "reference case" or "REFCASE"). 
+# The case described here should have the exact same set of active physics
+# as the REFCASE, so that the restart files have matching lists of variables.
+
+# ==============================================================================
+# case options:
+#
+# case          The value of "case" will be used many ways; directory and file
+#               names both locally and on HPSS, and script names; so consider
+#               its length and information content.
+# compset       Defines the vertical resolution and physics packages to be used.
+#               Must be a standard CESM compset; see the CESM documentation.
+# compset_args  The local variable passed to create_newcase, which contains $compset
+#               and any signal(s) that this compset is non-standard.
+# resolution    Defines the horizontal resolution and dynamics; see CESM docs.
+#                  T85           ... eulerian at ~ 1 degree
+#                  ne30np4_gx1v6 ... SE core at ~ 1 degree
+#                  f09_f09       ... FV core at ~ 1 degree
+#               BUG 1384 may apply, check if ocean and atm/land must be at same resolution.
+#               Notes about the creation of the 0.25x0.25 ocean + 1deg FV  resolution are in
+#               /glade/work/raeder/Models/CAM_init/SST/README"
+# user_grid     Tells create_newcase whether $resolution has any user defined grids,
+#               such as the high resolution SST grid, and where to find the definition of that resolution.
+# cesmtag       The version of the CESM source code to use when building the code.
+#               A directory with this name must exist in your home directory,
+#               and have SourceMods in it. See the SourceMods section.
+#               http://www.image.ucar.edu/pub/DART/CESM/README
+# sourcemods    DART no longer requires a SourceMods directory in order to work with CESM.
+#               If you have modifications to CESM, they should be provided in a 
+#               CESM-structured SourceMods directory, which this script expects to be in 
+#               $user/$cesmtag/SourceMods.
+# ==============================================================================
+
+setenv case          Fixed_leap_day
+
+setenv compset       HIST_CAM60_CLM50%BGC-CROP_CICE%PRES_DOCN%DOM_MOSART_SGLC_SWAV
+# setenv compset       F2000_DEV
+
+setenv compset_args  "--run-unsupported  --compset $compset"
+
+# A grid long name may need to be in the --res argument, 
+# even if an alias is defined for the user's grid.
+# (2018-10-11 create_newcase --help says a long name must be used,
+#  but that is incorrect according ot Jim Edwards and experience;
+#  an alias must be used.)
+# set resolution = a%0.9x1.25_l%0.9x1.25_oi%d.25x.25_r%r05_m%d.25x.25_g%null_%null
+setenv resolution    f09_d025
+
+# CESM2; set user_grid to '' to use standard SST files
+#        or '--user-grid' for hi-res (user-defined)
+set user_grid = ''
+# if ($user_grid !~ '') then
+   # --gridfile must have the name of a config_grids.xml file
+   #            which has the user's grid installed in it.
+   set user_grid = "${user_grid} --gridfile /glade/work/raeder/Models/CAM_init/SST"
+   set user_grid = "${user_grid}/config_grids+fv1+2deg_oi0.25_gland20.xml"
+   #  If the glc/CISM resolution is changed, also change GLC_GRID below.
+# endif
+echo "user_grid is $user_grid"
+
+setenv cesmtag       cesm2_1_relsd_m5.6


More information about the Dart-dev mailing list