-
Notifications
You must be signed in to change notification settings - Fork 2
Compiling MiRS on Discover
StegmannJCSDA edited this page Jun 3, 2025
·
7 revisions
module purge
module use /gpfsm/dswdev/jcsda/spack-stack/scu17/spack-stack-1.9.0/envs/ue-intel-2021.10.0/install/modulefiles/Core
module load stack-intel/2021.10.0
module load stack-intel-oneapi-mpi/2021.10.0
module load hdf5/1.14.3
module load hdf-eos2/2.20v1.00
module load cmake/3.30.3
module load git
module load netcdf-c/4.9.2 netcdf-cxx4/4.3.1 netcdf-fortran/4.6.1
Instructions on how to compile MiRS on Discover
First, unload all prior modules:
module purge
Then load the following modules from the spack-stack in the given order:
module use /gpfsm/dswdev/jcsda/spack-stack/scu17/spack-stack-1.9.0/envs/ue-intel-2021.10.0/install/modulefiles/Core
module load stack-intel/2021.10.0
module load stack-intel-oneapi-mpi/2021.10.0
module load hdf5/1.14.3
module load hdf-eos2/2.20v1.00
module load cmake/3.30.3
module load git
To compile CRTMv3, the following netCDF modules also need to be loaded:
module load netcdf-c/4.9.2 netcdf-cxx4/4.3.1 netcdf-fortran/4.6.1
Lastly, make sure that the files ./configure-with-cmake.bash contains the right paths for the necessary dependencies.
Create a build directory:
mkdir build
cd build/
Run cmake to configure the build:
cmake ..
To compile the source code, type make:
make -j4
The following mirs elements do not compile successfully right now:
src/testbed/rdr2tdr/src/testbed/sfr/src/testbed/mirs2nc