Skip to content

MPAS Compile‐Run Environments

Clark Evans edited this page Apr 4, 2026 · 7 revisions

Jump to: NOAA RDHPCS hera and ursa; NOAA MSU-HPC hercules; NSF NCAR derecho; Cmake builds for various HPCs.

non-spack-stack Intel environment for MPAS:

module load gnu
module load intel/2023.2.0
module load impi/2023.2.0
module load pnetcdf/1.12.3
export PNETCDF=/apps/pnetcdf/1.12.3/intel_2023.2.0-impi/

git clone https://github.com/ufs-community/MPAS-Model.git
git submodule update --init --recursive

make -j4 intel-mpi CORE=init_atmosphere
make clean CORE=atmosphere
make -j4 intel-mpi CORE=atmosphere

non-spack-stack Intel (non-LLVM) environment for MPAS:

module load intel-oneapi-compilers/2023.2.0
module load intel-oneapi-mpi/2021.13.1
module load parallel-netcdf/1.12.3
export PNETCDF=$PARALLEL_NETCDF_ROOT

git clone https://github.com/ufs-community/MPAS-Model.git
git submodule update --init --recursive

make -j4 intel-mpi CORE=init_atmosphere
make clean CORE=atmosphere
make -j4 intel-mpi CORE=atmosphere

spack-stack based GNU environment for MPAS:

module use /work/noaa/epic/role-epic/spack-stack/hercules/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core

module load stack-gcc/12.2.0 stack-mvapich2/2.3.7 parallelio/2.5.10

export PIO=$parallelio_ROOT
export PNETCDF=$parallel_netcdf_ROOT
export NETCDF=$netcdf_c_ROOT
export NETCDFF=$netcdf_fortran_ROOT

make gfortran CORE=atmosphere 

spack-stack based environment for MPAS-Limited-Area script:

git clone --recurse-submodules https://github.com/MPAS-Dev/MPAS-Limited-Area

module use /work/noaa/epic/role-epic/spack-stack/hercules/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core

module load stack-gcc/12.2.0 stack-mvapich2/2.3.7 py-netcdf4/1.5.8

./create_region conus.120km.pts ../data/120km/grid/x1.40962.grid.nc

(courtesy Will Mayfield, NSF NCAR RAL/DTC)

module load ncarenv/23.06                                                                                  
module load intel/2023.0.0                                                                                 
module load ncarcompilers/1.0.0    
module load cray-mpich/8.1.25    
module load craype/2.7.20    
module load parallel-netcdf/1.12.3    
module load netcdf-mpi/4.9.2   

git clone https://github.com/ufs-community/MPAS-Model.git
git submodule update --init --recursive

make -j4 ifort CORE=init_atmosphere
make clean CORE=atmosphere
make -j4 ifort CORE=atmosphere

See build.sh in the top-level repository directory. Works for most NOAA RDHPCS, operational, and partner HPCs, NSF NCAR's Derecho, and (less tested) selected cloud providers.

Clone this wiki locally