diff --git a/singularity/.gitignore b/singularity/.gitignore index b34dd2df5..baed94e88 100644 --- a/singularity/.gitignore +++ b/singularity/.gitignore @@ -1,4 +1,4 @@ !bin/ !bin/swiftest_driver -!bin/swiftest_python +!bin/swiftest !install.sh diff --git a/singularity/bin/swiftest b/singularity/bin/swiftest new file mode 100755 index 000000000..8a5849e51 --- /dev/null +++ b/singularity/bin/swiftest @@ -0,0 +1,4 @@ +#!/bin/sh -- +OMP_NUM_THREADS=${OMP_NUM_THREADS:-`nproc --all`} +FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES:-1} +singularity run --bind $(pwd):$(pwd) --env OMP_NUM_THREADS=${OMP_NUM_THREADS},FOR_COARRAY_NUM_IMAGES=${FOR_COARRAY_NUM_IMAGES} ${SWIFTEST_SIF} "$@" \ No newline at end of file