[Dart-dev] DART/branches Revision: 13040
dart at ucar.edu
dart at ucar.edu
Wed Mar 20 14:09:56 MDT 2019
raeder at ucar.edu
2019-03-20 14:09:56 -0600 (Wed, 20 Mar 2019)
363
A script to set up a single instance job,
usually to spin up the default, Jan 1, CAM initial state
to the desired assimilation start date.
It's a pared down version of and older setup_advanced,
but not entirely consistent with the current one.
It has passed a basic test of building a case that runs.
Earlier versions passed many tests.
It has not been reviewed.
Added: DART/branches/recam/models/cam-fv/shell_scripts/cesm2_1/spinup_single
===================================================================
--- DART/branches/recam/models/cam-fv/shell_scripts/cesm2_1/spinup_single (rev 0)
+++ DART/branches/recam/models/cam-fv/shell_scripts/cesm2_1/spinup_single 2019-03-20 20:09:56 UTC (rev 13040)
@@ -0,0 +1,680 @@
+#!/bin/csh -f
+#
+# DART software - Copyright UCAR. This open source software is provided
+# by UCAR, "as is", without charge, subject to all terms of use at
+# http://www.image.ucar.edu/DAReS/DART/DART_download
+#
+# DART $Id: spinup_single 13034 2019-03-19 23:21:12Z raeder at ucar.edu $
+
+#--------------------------------------------
+# This script can be run interactively, but on some systems (e.g. cheyenne)
+# it takes longer than is allowed for an interactive job.
+# In that case, it can be run as a batch job using the directives below,
+# or using "qcmd -q share -l select=1 -- <thisfilename>".
+
+# 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 spinup_single
+#PBS -A your_account_there
+#PBS -q shared_node_queue_for_this_setup_script
+# Resources I want:
+# select=#nodes
+# ncpus=#CPUs/node
+# mpiprocs=#MPI_tasks/node
+#PBS -l select=1:ncpus=4:mpiprocs=4
+#PBS -l walltime=00:30:00
+# Send email after a(bort) or e(nd)
+#PBS -m ae
+#PBS -M you at email.org
+# It's helpful to make the output file of this build job contain the case name.
+#PBS -o single_test1.bld1
+# Send standard output and error to this file.
+#PBS -j oe
+
+#--------------------------------------------
+# Purpose
+#
+# This script is designed to set up, stage, and build a single-instance run
+# of CESM using an Fxxx compset where CAM, CLM and CICE are active.
+# ==============================================================================
+# 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 A variable to accumulate compset arguments for passing to create_newcase.
+# user_grid A variable to accumulate grid arguments for create_newcase,
+# especially high res SSTs.
+# 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"
+# 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
+# ==============================================================================
+# AMIP_CAM5_CLM40%SP_CICE%PRES_DOCN%DOM_RTM_SGLC_SWAV (F_AMIP_CAM5) (FAMIPC5)
+
+setenv case single_test1
+
+setenv compset HIST_CAM60_CLM50%BGC-CROP_CICE%PRES_DOCN%DOM_MOSART_SGLC_SWAV
+# setenv compset F2000_DEV
+# F2000_DEV = 2000_CAM60_CLM50%BGC_CICE%PRES_DOCN%DOM_MOSART_CISM1%NOEVOLVE_SWAV
+
+setenv compset_args "--run-unsupported --compset $compset"
+# setenv compset_args "-user_compset $compset -user_pes_setby cam"
+
+# CESM2; set user_grid to '' for standard SST files
+# or '--gridfile' for hi-res (user-defined)
+set user_grid = '--gridfile'
+if ($user_grid == '--gridfile') 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} /glade/work/raeder/Models/CAM_init/SST"
+ set user_grid = "${user_grid}/config_grids+fv1+2deg_oi0.25_gland20.xml"
+ # A grid long name may be needed in the --res argument,
+ # even if an alias is defined for the user's grid.
+ # set resolution = a%0.9x1.25_l%0.9x1.25_oi%d.25x.25_r%r05_m%d.25x.25_g%null_%null
+ # f09_d025 = the 1 degree CAM + 1/4 degree SST resolution
+ set resolution = f09_d025
+else
+ # Use a CESM supported grid
+ set resolution = f19_g17
+# set resolution = f09_f09_g17
+
+endif
+echo "user_grid is $user_grid"
+
+setenv cesmtag cesm2_1_maint-5.6
+# setenv cesmtag cesm2_0
+setenv num_instances 1
More information about the Dart-dev
mailing list