Running in parallel: Number of cores #83
Answered
by
colemanjs
akshathadixith
asked this question in
Q&A
-
|
I am running AdditiveFOAM simulations on a HPC. I specified one node and 24 cores in my SLURM submission file. But the simulation still runs using 6 cores. How do I change the number of cores? Do I specify it in the decomposeParDict file? |
Beta Was this translation helpful? Give feedback.
Answered by
colemanjs
Nov 25, 2025
Replies: 1 comment
-
|
There a two steps to running AdditiveFOAM simulations on multiple cores:
srun -N 1 -n 24 additiveFoam -parallelFinally, before you run the application, don't forget to decompose the mesh again if you are changing the number of processors, using decomposePar -force |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
akshathadixith
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There a two steps to running AdditiveFOAM simulations on multiple cores:
numberOfSubdomainsinsystem/decomposeParDictto 24 (here)Finally, before you run the application, don't forget to decompose the mesh again if you are changing the number of processors, using