...
If you built NetCDF4 and HDF5, add
--with-hdf5=$HDF5_DIR --with-netcdf=$NETCDF_DIR
Execute the
configure
script with desired configuration options out-of-source (recommended) build directory. A typical MOAB configuration command with all TPLs enabled for E3SM pre-built for your machine might look like the one shown below, where$PACKAGE_DIR
indicates the location of the installation prefix for the particular TPL package.Code Block $MOAB_SRC/configure CC=$E3SM_MPI_DIR/bin/mpicc \ CXX=$E3SM_MPI_DIR/bin/mpicxx \ FC=$E3SM_MPI_DIR/bin/mpif90 \ F77=$E3SM_MPI_DIR/bin/mpif77 \ --prefix=$MOAB_INSTALL_DIR \ --enable-debug --enable-optimize \ --with-mpi=$E3SM_MPI_DIR \ --with-hdf5=$E3SM_HDF5_DIR \ --with-netcdf=$E3SM_NETCDF_DIR \ --with-pnetcdf=$E3SM_PNETCDF_DIR \ --with-eigen3=$EIGEN3_INCLUDE_DIR \ --with-tempestremap=$TEMPESTREMAP_DIR \ --with-zoltan=$ZOLTAN_DIR
However, if external libraries like Eigen3, TempestRemap, and Zoltan are to be auto-downloaded and configured dynamically, then one can use the following command.
...
Compile MOAB and supported tools:
make -j4
Verify configuration and build setup:
make check
(Some checks won’t pass without HDF5. Ignore those).
Next, to install the compiled libraries, headers, and tools, run: make install
...
Once you have verified MOAB has been built correctly, you need to update the CIME machine configuration to specify the MOAB_ROOT
(point to the installation prefix).
Next, edit Edit the entry for your machine in config_machines.xml
and make changes like below (example from pm-cpu configuration)
...
You can add “Vmoab” to any B watercycle or F case test.
Pre-built recipes (Conda)
...