Versions Compared

Key

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

As part of the efforts in the CMDV project, interfaces to integrate the MOAB unstructured mesh library with the TempestRemap remapping tool have been undertaken. Detailed information on the algorithmic and implementation aspects of this effort have been written in a manuscript submitted to Geoscientific Model Development [1]. This work has led to the development of a new offline remapping tool called mbtempest, which exposes the functionality to compute the supermesh or intersection mesh between two unstructured source and target component grids, in addition to using this supermesh for computing the remapping weights to project solutions between the grids. This functionality is part of the critical worflow with E3SM, where the generated remapping weights in the offline step are consumed by MCT at runtime to seamlessly transfer solution data between components (atm↔ocn, atm↔lnd, etc).

...

To complete the offline map generation workflow, a converter tool from the parallel MOAB h5m file to a SCRIP file to be consumed in E3SM directly is available. This h5mtoscrip converter tool takes the output file from mbtempest and produces the mapping weights and attributes in SCRIP nc file based on the metadata generated during the remapping process. The downside to this extra step in conversion is that this process is only run in serial and is limited to the memory constraints on the node. As a future task, we will also be investing effort into writing a SCRIP file in parallel through a custom I/O interface using PNetCDF. 

Typical usage of the tool takes the mapping file (h5m) as input and writes out the SCRIP (nc) file as output.

Code Block
tools/h5mtoscrip -d 2 -w mapSEFV-NE30.h5m -s mapSEFV-NE30.nc

As a future task, we will also be investing effort into writing a SCRIP file in parallel through a custom I/O interface using PNetCDF.NOTE: In the latest version of MOAB (5.2.1+ or master branch), we now have a parallel SCRIP writer for map files. So you can just use .nc extension when writing out the map file with the -f argument for mbtempest

Machines with mbtempest tool pre-installed

Cori: Updated sources of TempestRemap and MOAB have been pre-installed along with all required dependencies on some of the standard machines. The MOAB installation is available on Cori within the E3SM project space: /cfsproject/cdirsprojectdirs/e3sm/software/moab  and the corresponding TempestRemap installation is at /cfsproject/cdirsprojectdirs/e3sm/software/tempestremap. The workflow for generating the offline maps using these installed tools is described below. 

...

If steps (a)-(g) pass successfully, the MOAB libraries and tools, along with interfaces for TempestRemap will be installed in $INSTALL_PREFIX/moab directory. The offline remapping weight computation tool, mbtempest, will also be installed during this process and can then be used standalone to generate the weight files as needed.

References

1 Mahadevan, V. S., Grindeanu, I., Jacob, R., and Sarich, J.: Improving climate model coupling through a complete mesh representation: a case study with E3SM (v1) and MOAB (v5.x), Geosci. Model Dev. Discuss., https://doi.org/10.5194/gmd-2018-280, in review, 2018.