Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

 

The ICTP Regional Climate Model (RegCM), originally developed at the National Center for Atmospheric Research (NCAR), is maintained in the Earth System Physics (ESP) section of the ICTP. The latest version includes major upgrades in the structure of the code and its pre- and post- processors, along with the inclusion of some new physics parameterizations.

...

To configure the build system using the GNU make program should be enough on most systems to just type in:

Code Block
./configure

The makeinc file must then be manually edited to uncomment an option line as described in the below diff:

Code Block
diff --git a/makeinc b/makeinc
index edb543c1a..a42066da5 100644
--- a/makeinc
+++ b/makeinc
@@ -47,7 +47,7 @@ ifeq ($(findstring DCLM45, $(CPPFLAGS)),DCLM45)
   #CPPFLAGS += $(DEFINE)VICHYDRO
 endif
 
-#CPPFLAGS += $(DEFINE)RCEMIP
+CPPFLAGS += $(DEFINE)RCEMIP
 
 space :=
 space +=

...

Code Block
 make version
 make install

Sample build script on PSC:

Code Block
#!/bin/bash
source /jet/packages/oneapi/v2023.2.0<path>/compiler/2023.2.1/env/vars.sh
source /jet/packages/oneapi/v2023.2.0//<path>/mpi/2021.10.0/env/vars.sh
export MPIFC=mpiifort
export CC=mpiicc
export FC=$MPIFC

export HDF5_DIR=<path>
export NETCDF_DIR=<path>
export PATH=$NETCDF_DIR/bin:$PATH

autoreconf -f -i
./configure --prefix=$BASE/build-$MPI
# Modify makeinc file

make version
make install

...

The above diagnostic printout of the surface pressure readings from the model internal status in hPa should show a constant pressure increase throughout the model run of about 10 hPa (mb) per month due to the radiative cooling of the atmosphere.

Tasks and Submissions

  1. Compile, build and run the RegCM with the given input and submit the results (standard output).

  2. Bonus task: change jx and iy parameters in the input file to find the maximum size you can fit into the memory of your cluster.

Code Block
iy     = 100,        # Try increasing this two numbers
jx     = 200,        # What are the max values you can run with?
  1. Run RegCM with

    View file
    nameregcm

...

  1. -input.

...

  1. zip

...

  1. .

  2. Submit your best result. Do not include binary output files nor multiple results.