Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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. 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).

Getting started

In order to build the MOAB-TempestRemap stack with parallel MPI launch support, we suggest the following list of commands. First define an installation prefix directory where the stack of library, includes and tools will be installed. Let us call this as the $INSTALL_PREFIX environment variable. To get the entire stack working correctly, we need to find parallel-enabled dependency installations for HDF5 and NetCDF that are built with MPI library support for the current architecture, with C, C++, Fortran compilers provided as $CC, $CXX, and $FC. Let us refer to these installations as $HDF5_DIR and $NETCDF_DIR respectively.

  1. TempestRemap

    a. Clone repository: `git clone https://github.com/ClimateGlobalChange/tempestremap.git tempestremap`
    b. Create build dir: cd tempestremap && mkdir build
    c. Generate configure script: autoreconf -fi
    d. Go to build dir: cd build
    e. Configure: `../configure --prefix=$INSTALL_PREFIX/tempestremap --with-netcdf=$NETCDF_DIR --with-hdf5=$HDF5_DIR CC=$CC CXX=$CXX CXXFLAGS="-g -O2"`
    f. Build and install: make all && make install

    At the end of this series of steps, the TempestRemap libraries and tools (GenerateCSMesh, GenerateICOMesh, GenerateOverlapMesh, GenerateOfflineMap among others) will be installed in $INSTALL_PREFIX directory.

  2. MOAB

    a. Clone repository: git clone https://bitbucket.org/fathomteam/moab.git moab
    b. Create build dir: cd moab && mkdir build
    c. Generate configure script: autoreconf -fi
    d. Go to build dir: cd build
    e. Configure: `../configure --prefix=$INSTALL_PREFIX/moab --with-mpi --with-tempestremap=$INSTALL_PREFIX/tempestremap --with-netcdf=$NETCDF_DIR --with-hdf5=$HDF5_DIR CC=$CC FC=$FC F77=$FC CXX=$CXX CXXFLAGS="-g -O2" --with-eigen3=$INSTALL_PREFIX/eigen3`
    f. Build and install: make all && make install

  • No labels