From bbef8cfeb87b5a92602c13778416e1de6fb3a409 Mon Sep 17 00:00:00 2001 From: Dom Heinzeller Date: Fri, 2 Oct 2020 09:26:24 -0600 Subject: [PATCH 1/2] Update hash for fv3gfs cime interface in Externals.cfg; update documentation wrt how to set environment variables --- Externals.cfg | 2 +- docs/UsersGuide/source/faq.rst | 22 +++++++++------------- docs/UsersGuide/source/quickstart.rst | 17 +++++++++-------- 3 files changed, 19 insertions(+), 22 deletions(-) diff --git a/Externals.cfg b/Externals.cfg index cbb0f3d..43ec3bd 100644 --- a/Externals.cfg +++ b/Externals.cfg @@ -29,7 +29,7 @@ required = True # repository so this extra repo is not needed [fv3gfs_interface] # branch = ufs-release-v1.1 -hash = 523f22e +hash = 5772c96 protocol = git repo_url = https://github.com/ESCOMP/fv3gfs_interface.git local_path = src/model/FV3/cime diff --git a/docs/UsersGuide/source/faq.rst b/docs/UsersGuide/source/faq.rst index d16164d..a87e95d 100644 --- a/docs/UsersGuide/source/faq.rst +++ b/docs/UsersGuide/source/faq.rst @@ -6,15 +6,15 @@ FAQ How can I set required environment variables? ============================================= -The best practice to set environment variables (``UFS_SCRATCH``, ``UFS_INPUT``, -``UFS_DRIVER``, ``CIME_MODEL``, and ``PROJECT``) is -to put them into the ``.bashrc`` (Bash shell) or ``.tcshrc`` (Tcsh shell) files. -These files are executed when a user opens a new shell or logs in to the server -(including compute nodes) so that their environment is set correctly. In platforms -that are not preconfigured, the NCEPLIBS-provided shell script (``setenv_nceplibs.sh|.csh``) -should be sourced in the same way. +The best practice is to set environment variables (``UFS_SCRATCH``, ``UFS_INPUT``, +``UFS_DRIVER``, ``CIME_MODEL``, and ``PROJECT``) in the user's enviroment. Some systems +(in particular Stampede2) require to to export them in the ``.bashrc`` (Bash shell) or +``.tcshrc`` (Tcsh shell) files for the batch jobs to function. These environment +variables are then set automatically when a user opens a new shell or logs in to the server +(including compute nodes). In platforms that are not preconfigured, the NCEPLIBS-provided +shell script (``setenv_nceplibs.sh|.csh``) must be sourced in the same way. -**BASH (edit ~/.bashrc):** +**BASH:** .. code-block:: console @@ -25,7 +25,7 @@ should be sourced in the same way. export CIME_MODEL=ufs source /path/to/nceplibs/bin/setenv_nceplibs.sh -**BASH (edit ~/.tcshrc):** +**TCSH:** .. code-block:: console @@ -36,10 +36,6 @@ should be sourced in the same way. setenv CIME_MODEL ufs source /path/to/nceplibs/bin/setenv_nceplibs.csh -.. note:: - - The user might need to create the ``~/.bashrc`` or ``~/.tcshrc`` file. - How can I see/check the steps in my workflow? ============================================= diff --git a/docs/UsersGuide/source/quickstart.rst b/docs/UsersGuide/source/quickstart.rst index 88af9cd..b97c2b5 100644 --- a/docs/UsersGuide/source/quickstart.rst +++ b/docs/UsersGuide/source/quickstart.rst @@ -276,17 +276,18 @@ On `platforms that are not pre-configured Date: Fri, 2 Oct 2020 09:50:44 -0600 Subject: [PATCH 2/2] Update Externals.cfg to point to tags for ufs-weather-model, cime, fv3gfs cime interface --- Externals.cfg | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Externals.cfg b/Externals.cfg index 43ec3bd..d04efbb 100644 --- a/Externals.cfg +++ b/Externals.cfg @@ -2,16 +2,14 @@ schema_version = 1.0.0 [model] -# branch = release/public-v1 -hash = 5bea16b +tag = ufs-v1.1.0 protocol = git repo_url = https://github.com/ufs-community/ufs-weather-model/ local_path = src/model required = True [cime] -# branch = ufs-release-v1.1 -hash = cac6a3e +tag = ufs-v1.1.0 protocol = git repo_url = https://github.com/ESMCI/cime.git local_path = cime @@ -28,8 +26,7 @@ required = True # FV3GFS - this should be merged into the NOAA-EMC/fv3atm # repository so this extra repo is not needed [fv3gfs_interface] -# branch = ufs-release-v1.1 -hash = 5772c96 +tag = ufs-v1.1.0 protocol = git repo_url = https://github.com/ESCOMP/fv3gfs_interface.git local_path = src/model/FV3/cime