Running coupled simulations using slurm

Created by Alice König, Modified on Thu, 11 Jul, 2024 at 3:22 PM by Alice König

On clusters using the slurm workload manager the srun command should be used instead of the mpirun command used locally. To ensure both job steps are executed side-by-side when using slurm the --overlap option is usually required for srun:

#SBATCH <ResourceAllocation>
# start DEM
cd ../DEM
srun --overlap aspherix -in run.asx &
# start CFD alongside
cd ../CFD
srun --overlap cfdemSolverPiso -parallel &
# wait for all job steps to finish
wait

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article