Difference between revisions of "MPAS"

Line 7: Line 7:
 
=MPAS-Atmosphere=  
 
=MPAS-Atmosphere=  
 
----
 
----
==Building==
 
  
===Pre-built Module===  
+
== Building on Gadi ==
A pre-built version of MPAS is available in the ACCESS modules:
+
 
 +
MPAS7 on Gadi requires no code modifications, although you will need to install its dependency PIO
 +
 
 +
=== Installing PIO ===
 
<syntaxhighlight lang=bash>
 
<syntaxhighlight lang=bash>
module use ~access/modules
+
module load intel-compiler openmpi
module load mpas/5.0
+
module load netcdf/4.7.3p pnetcdf
 +
 
 +
# Installation directory, set as desired
 +
export PIO_DIR=/scratch/$PROJECT/$USER/pio
 +
 
 +
wget https://github.com/NCAR/ParallelIO/releases/download/pio2_5_2/pio-2.5.2.tar.gz
 +
tar xvf pio-2.5.2.tar.gz
 +
cd pio-2.5.2
 +
 
 +
CC=mpicc FC=mpif90 ./configure --enable-fortran --prefix $PIO_DIR && make check
 +
 
 +
# I see an error in 'test_pioc'
 +
 
 +
make install
 +
 
 +
cd ..
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Once the module is loaded the data files are located in the directory <span style="font-family:monospace">$MPAS_DATA</span>:
+
=== Building MPAS ===
 
<syntaxhighlight lang=bash>
 
<syntaxhighlight lang=bash>
$ ls $MPAS_DATA
+
module load intel-compiler openmpi
CAM_ABS_DATA.DBL
+
module load netcdf/4.7.3p pnetcdf
CAM_AEROPT_DATA.DBL
+
 
GENPARM.TBL
+
git clone https://github.com/MPAS-Dev/MPAS-Model
LANDUSE.TBL
+
 
...
+
cd MPAS-Model
</syntaxhighlight>
+
 
 +
# Set to wherever you installed PIO
 +
export PIO=$PIO_DIR
  
===Building MPAS===
+
make ifort CORE=atmosphere USE_PIO2=true
ARCCSS CMS maintains a branch of MPAS at https://github.com/coecms/MPAS-Release. This branch has some minor changes required to build the model on Raijin. To set up the build environment:
 
<syntaxhighlight lang=bash>
 
$ git clone https://github.com/coecms/MPAS-Release
 
$ cd MPAS-Release
 
$ source environment.raijin
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
You can then build individual cores with e.g. <span style="font-family:monospace">make ifort CORE=atmosphere</span>, see the [http://www2.mmm.ucar.edu/projects/mpas/tutorial/mpas_atmosphere_users_guide_5.0.pdf | User's Guide] for full details
 
  
 
==Running==  
 
==Running==  
  
See the [http://www2.mmm.ucar.edu/projects/mpas/tutorial/mpas_atmosphere_users_guide_5.0.pdf | User's Guide] for details on how to run the model. A number of idealised test cases as well as meshes for different resolutions are available from the [http://mpas-dev.github.io/atmosphere/atmosphere_download.html | MPAS download site]. The $MPAS_DATA directory has all of the TBL, DBL and namelist files required to run MPAS
+
See the [https://www2.mmm.ucar.edu/projects/mpas/mpas_atmosphere_users_guide_7.0.pdf | User's Guide] for details on how to run the model. A number of idealised test cases as well as meshes for different resolutions are available from the [http://mpas-dev.github.io/atmosphere/atmosphere_download.html | MPAS download site]. The $MPAS_DATA directory has all of the TBL, DBL and namelist files required to run MPAS
 
<syntaxhighlight lang=bash>
 
<syntaxhighlight lang=bash>
 
cp $MPAS_DATA myrun
 
cp $MPAS_DATA myrun
Line 48: Line 61:
  
 
[http://mpas-dev.github.io/ | MPAS Home Page]
 
[http://mpas-dev.github.io/ | MPAS Home Page]
[http://www2.mmm.ucar.edu/projects/mpas/tutorial/mpas_atmosphere_users_guide_5.0.pdf | Atmosphere User's Guide]
+
[https://www2.mmm.ucar.edu/projects/mpas/mpas_atmosphere_users_guide_7.0.pdf | Atmosphere User's Guide]
  
[https://github.com/coecms/MPAS-Release | ARCCSS MPAS Github]
 
 
[https://github.com/MPAS-Dev/MPAS-Release | Main MPAS Github]
 
[https://github.com/MPAS-Dev/MPAS-Release | Main MPAS Github]
  
 
[[Category:Atmosphere Models]]
 
[[Category:Atmosphere Models]]

Revision as of 23:07, 18 November 2020

Template:Unsupported: CLEX CMS does not ordinarily provide support for this configuration, either due to its age or it being outside the scope of the Centre's research. Please contact us before starting any major work with this configuration

MPAS has not been brought across from Raijin to Gadi


The Model for Prediction Across Scales (MPAS) is a collaborative project for developing atmosphere, ocean and other earth-system simulation components for use in climate, regional climate and weather studies. [[1]]. The Atmospheric component of the model is now available for use on Raijin.

MPAS-Atmosphere


Building on Gadi

MPAS7 on Gadi requires no code modifications, although you will need to install its dependency PIO

Installing PIO

module load intel-compiler openmpi
module load netcdf/4.7.3p pnetcdf

# Installation directory, set as desired
export PIO_DIR=/scratch/$PROJECT/$USER/pio

wget https://github.com/NCAR/ParallelIO/releases/download/pio2_5_2/pio-2.5.2.tar.gz
tar xvf pio-2.5.2.tar.gz
cd pio-2.5.2

CC=mpicc FC=mpif90 ./configure --enable-fortran --prefix $PIO_DIR && make check

# I see an error in 'test_pioc'

make install

cd ..

Building MPAS

module load intel-compiler openmpi
module load netcdf/4.7.3p pnetcdf

git clone https://github.com/MPAS-Dev/MPAS-Model

cd MPAS-Model

# Set to wherever you installed PIO
export PIO=$PIO_DIR

make ifort CORE=atmosphere USE_PIO2=true


Running

See the | User's Guide for details on how to run the model. A number of idealised test cases as well as meshes for different resolutions are available from the | MPAS download site. The $MPAS_DATA directory has all of the TBL, DBL and namelist files required to run MPAS

cp $MPAS_DATA myrun
cd myrun
# Edit configuration then qsub `run-atmosphere.pbs`

Resources

| MPAS Home Page | Atmosphere User's Guide

| Main MPAS Github