Skip to content

Commit

Permalink
update mpi example
Browse files Browse the repository at this point in the history
  • Loading branch information
quaquel committed Mar 20, 2024
1 parent b71e27c commit 435050f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions ema_workbench/examples/example_mpi_lake_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
import math
import time

# FIXME
import sys

sys.path.insert(0, "/Users/jhkwakkel/Documents/GitHub/EMAworkbench")

import numpy as np
from scipy.optimize import brentq

Expand Down
4 changes: 2 additions & 2 deletions ema_workbench/examples/slurm_script.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

#SBATCH --job-name="Python_test"
#SBATCH --time=00:02:00
#SBATCH --time=00:06:00
#SBATCH --ntasks=10
#SBATCH --cpus-per-task=1
#SBATCH --partition=compute
Expand All @@ -17,6 +17,6 @@ module load py-mpi4py
module load py-pip

pip install ipyparallel
pip install --user -e git+https://github.com/quaquel/EMAworkbench@mpi_update#egg=ema-workbench
pip install --user ema_workbench

mpiexec -n 1 python3 example_mpi_lake_model.py

0 comments on commit 435050f

Please sign in to comment.