6. FAQ¶
6.1. How do I build and run a single test of the UFS Weather Model?¶
An efficient way to build and run the UFS Weather Model is to use the regression test
(rt.sh). This script is widely used by model developers on Tier 1 and 2 platforms
and is described in the UFS WM GitHub wiki. The advantages to this approach are:
It does not require a workflow, pre- or post-processing steps.
The batch submission script is generated.
Any required input data is already available for machines used by the regression test.
Once the
rt.shtest completes, you will have a working copy in your run directory where you can make modifications to the namelist and other files, and then re-run the executable.
The steps are:
Clone the source code and all the submodules as described in Section 3.2, then go into the
testsdirectory:cd ufs-weather-model (or the top level where you checked out the code) cd tests
Find a configure (
*.conf) file that contains the machine and compiler you are using. For this example, the Intel compiler on Cheyenne is used. To create a custom configure file, two lines are needed: aCOMPILEline and aRUNline. TheCOMPILEline should contain the name of the machine and compilercheyenne.inteland the desiredSUITESfor the build. Choose aRUNline under thisCOMPILEcommand that uses the desiredSUITE. For example:COMPILE | 32BIT=Y CCPP=Y STATIC=Y SUITES=FV3_GFS_v15p2,FV3_GFS_v16beta,FV3_GFS_v15p2_no_nsst,FV3_GFS_v16beta_no_nsst | standard | cheyenne.intel | fv3 RUN | fv3_ccpp_gfs_v16beta | standard | | fv3 |
Put these two lines into a file called
my_test.conf. The parameters used in this run can be found in thefv3_ccpp_gfs_v16betafile in theufs-weather-model/tests/testsdirectory.Note
These two lines are long and may not appear in entirety in your browser. Scroll to the right to see the entire line.
Modify the
rt.shscript to put the output in a run directory where you have write permission:if [[ $MACHINE_ID = cheyenne.* ]]; then stanza: ... dprefix=/glade/scratch
This works for Cheyenne, since
$USER/FV3_RTwill be appended. Also check thatRTPWDpoints to a diretory that exists:if [[ $MACHINE_ID = cheyenne.* ]]; then RTPWD=${RTPWD:-$DISKNM/ufs-public-release-20200224/${COMPILER^^}}
Run the
rt.shscript from thetestsdirectory:./rt.sh -k -l my_test.conf >& my_test.out &Check
my_test.outfor build and run status, plus other standard output. Check/glade/scratch/$USER/FV3_RT/rt_PIDfor the model run, wherePIDis a process ID. The build will take about 10-15 minutes and the run will be fast, depending on how long it waits in the queue. A message"REGRESSION TEST WAS SUCCESSFUL"will be written to this file, along with other entertainment:'Elapsed time: 00h:14m:12s. Have a nice day!'.When the build and run are complete, modify the namelist or
model_configurefiles and re-run by submitting thejob_cardfile:qsub job_card
6.2. How do I change the length of the model run?¶
In your run directory, there is a file named model_configure. Change the
variable nhours_fcst to the desired number of hours.
6.3. How do I select the file format for the model output (netCDF or NEMSIO)?¶
In your run directory, there is a file named model_configure. Change the
variable output_file to 'netcdf' or 'nemsio'. The variable output_file
if only valid when the write component is activated by setting quilting to .true.
in the model_configure file.