Skip to content

Commit

Permalink
Merge pull request #77 from UM-Bridge/CI-fix
Browse files Browse the repository at this point in the history
Another fix for gs2 and achlys
  • Loading branch information
chun9l authored May 20, 2024
2 parents 91a9938 + 5d3062e commit d17687f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions models/achlys/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM linusseelinger/achlys-ubuntu
FROM sdixonukaea/achlys-ubuntu:latest

RUN apt update && apt install -y inotify-tools python3-pip python3-venv && \
python3 -m venv venv && . venv/bin/activate && \
pip3 install umbridge && \
pip3 install umbridge numpy scipy pandas && \
rm -rf /var/lib/apt/lists/*

COPY server.py /server.py
Expand Down
2 changes: 1 addition & 1 deletion models/gs2/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __call__(self, parameters, config):

# Run the model
mpirank = config.get("ranks", 4)
os.system(f"mpirun -n {mpirank} /usr/gs2/bin/gs2 {input_file}")
os.system(f"mpirun --allow-run-as-root -n {mpirank} /usr/gs2/bin/gs2 {input_file}") # --allow-run-as-root to suppress OMPI error, not reccomended when running outside of docker!

# Read results using Pyrokinetics package and print output
gs2_input = input_file
Expand Down

0 comments on commit d17687f

Please sign in to comment.