Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Added singularity swiftest script
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Jun 7, 2023
1 parent 10935fb commit 49e77a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion singularity/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!bin/
!bin/swiftest_driver
!bin/swiftest_python
!bin/swiftest
!install.sh
4 changes: 4 additions & 0 deletions singularity/bin/swiftest
Original file line number Diff line number Diff line change
@@ -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} "$@"

0 comments on commit 49e77a3

Please sign in to comment.