Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GNU build and run on Cheyenne #135

Merged
merged 1 commit into from
Apr 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Externals.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ protocol = git
repo_url = https://github.com/NOAA-EMC/UFS_UTILS
# Specify either a branch name or a hash but not both.
#branch = develop
hash = 005f9a0a
hash = ea821358
local_path = src/UFS_UTILS
required = True

Expand Down
14 changes: 11 additions & 3 deletions docs/UsersGuide/source/Quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ and will clone the regional workflow, pre-processing utilities, UFS Weather Mode
into the appropriate directories under your ``regional_workflow`` and ``src`` directories.


.. _SetUpBuild:

Set up the Build Environment
============================
Instructions for loading the proper modules and/or setting the correct environment variables can be
Expand All @@ -53,9 +55,10 @@ or use ``setenv`` rather than ``export`` depending on your environment:
.. code-block:: console

$ ls -l env/
-rw-rw-r-- 1 user ral 466 Jan 21 10:09 build_cheyenne_intel.env
-rw-rw-r-- 1 user ral 461 Jan 21 10:09 build_hera_intel.env
-rw-rw-r-- 1 user ral 543 Jan 21 10:09 build_jet_intel.env
-rw-rw-r-- 1 user ral 1062 Apr 27 10:09 build_cheyenne_gnu.env
-rw-rw-r-- 1 user ral 1061 Apr 27 10:09 build_cheyenne_intel.env
-rw-rw-r-- 1 user ral 1023 Apr 27 10:09 build_hera_intel.env
-rw-rw-r-- 1 user ral 1017 Apr 27 10:09 build_jet_intel.env

Build the Executables
=====================
Expand Down Expand Up @@ -115,6 +118,11 @@ machine you are running on, those changes should be sufficient; however, if that
on Cheyenne), or if you have pre-staged the initialization data you would like to use, you will also want to set
``USE_USER_STAGED_EXTRN_FILES="TRUE"`` and set the paths to the data for ``EXTRN_MDL_SOURCE_BASEDIR_ICS`` and
``EXTRN_MDL_SOURCE_BASEDIR_LBCS``.

.. note::

If you set up the build environment with the GNU compiler in :numref:`Section %s <SetUpBuild>`, you will
have to add the line ``COMPILER="gnu"`` to the ``config.sh`` file.

At a minimum, the following parameters should be set for the machine you are using:

Expand Down
8 changes: 4 additions & 4 deletions env/build_cheyenne_gnu.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ module load gnu/9.1.0
module load mpt/2.22
module load ncarcompilers/0.5.0
module load cmake/3.16.4
module unload netcdf


module use /glade/p/ral/jntp/GMTB/tools/hpc-stack-nco-20201113/modulefiles/stack
module load hpc/1.0.0-beta1
module use /glade/p/ral/jntp/GMTB/tools/hpc-stack-v1.1.0/modulefiles/stack
module load hpc/1.1.0
module load hpc-gnu/9.1.0
module load hpc-mpt/2.22
module load jasper/2.0.22
module load zlib/1.2.11
module load png/1.6.35
module load hdf5/1.10.6
module load netcdf/4.7.4
module load pio/2.5.1
module load pio/2.5.2
module load esmf/8_1_0_beta_snapshot_27
module load bacio/2.4.1
module load crtm/2.3.0
Expand Down