-
Notifications
You must be signed in to change notification settings - Fork 0
Home
inJeans edited this page Oct 31, 2018
·
6 revisions
Welcome to the openmc wiki!
Clone repository
git clone https://github.com/mit-crpg/openmc.git
cd openmc
git checkout master
Make sure modules are loaded
module load openmpi/3.1.3
module load hdf5/1.10.4-openmpi
module load cmake/3.13.0
Export environment variables specifying mpi compilers and parallel hdf library
export FC=$MPI_ROOT/bin/mpif90
export CC=$MPI_ROOT/bin/mpicc
export HDF_ROOT=$HDF5_DIR
Now to configure with cmake and build/install with make
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/path/to/install/dir -DHDF5_PREFER_PARALLEL=on ..
make
make install
Seems to work. There were some errors about the Python directories, but they haven't been installed yet.
Download test data (make sure you are in the directory that contains the openmc
repo.
wget -O nndc_hdf5.tar.xz $(cat openmc/.travis.yml | grep anl.box | awk '{print $2}')
tar xJvf nndc_hdf5.tar.xz
export OPENMC_CROSS_SECTIONS=$(pwd)/nndc_hdf5/cross_sections.xml
git clone --branch=master git://github.com/smharper/windowed_multipole_library.git wmp_lib
tar xzvf wmp_lib/multipole_lib.tar.gz
export OPENMC_MULTIPOLE_LIBRARY=$(pwd)/multipole_lib