mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-23 19:45:34 -04:00
25 lines
448 B
Bash
Executable file
25 lines
448 B
Bash
Executable file
#!/bin/bash
|
|
set -ex
|
|
|
|
# Argument List
|
|
args=" "
|
|
|
|
# Check for MPI
|
|
if [[ $MPI == 'y' ]]; then
|
|
args="${args} --mpi "
|
|
fi
|
|
|
|
# Check for event-based
|
|
if [[ $EVENT == 'y' ]]; then
|
|
args="${args} --event "
|
|
fi
|
|
|
|
# Check NCrystal installation
|
|
if [[ $NCRYSTAL = 'y' ]]; then
|
|
# Change environmental variables
|
|
eval $( "${HOME}/ncrystal_inst/bin/ncrystal-config" --setup )
|
|
nctool --test
|
|
fi
|
|
|
|
# Run regression and unit tests
|
|
pytest --cov=openmc -v $args tests
|