Closed hyzahw closed 9 months ago
Hi @hyzahw,
it looks like an issue with the Apptainer container to me. In order to help you better, can you check the following:
Regards, Janis
Hi Janis,
Thanks for your answer. I am using Ubuntu as a native OS. I checked again the whole steps of installing Apptainer and I manage to not get the errors now concerning squashfuse and fuse2fs so I guess the Apptainer problem is solved.
I get now this error when starting the runParallel renumberMesh
step in ./Allrun
:
--> FOAM FATAL ERROR: (openfoam-2206)
attempt to run parallel on 1 processor
From static bool Foam::UPstream::init(int&, char**&, bool)
in file UPstream.C at line 286.
FOAM aborting
I tried ./Allrun command in another tutorial that ran also in parallel. decomposePar was executed normally also as before and the same error came once the runParallel step was executed. Do you have any recommendations?
This may be an issue with MPI, can you check which version is installed by executing the command mpiexec --version
in a terminal? You can further check if the simulation is executed when running it on only one CPU. Therefore, just change the Allrun
script from:
# decompose and run case
runApplication decomposePar
runParallel renumberMesh -overwrite
runParallel $(getApplication)
to:
# decompose and run case
# runApplication decomposePar
# runParallel renumberMesh -overwrite
runApplication $(getApplication)
Edit: I get this error when numberOfSubdomains
in system/decomposedParDict
is set to 1. Can you check if this parameter is set to 2 in your case? It should look like: numberOfSubdomains 2;
Regards Janis
I was using mpi version 3.3.2 when I encountered the problem. Now I upgraded to 5.0.1 and I still get the same error. Can you mention the version that you are using? Should there be a compatibility between OF2206 and a specific MPI version?
The case runs normally if I don't decompose.
The decomposeParDict is similar to the original file in test_cases
numberOfSubdomains 2;
method hierarchical;
coeffs
{
n (2 1 1);
}
Hi @hyzahw,
I have MPI version 4.0.3 installed, as far as I know the Apptainer container uses MPI version 4.1.2. I have encountered these issues with executing simulations when there is a too large difference in between MPI version in the past.
If it is not too much trouble, you can try to install the MPI version used in your container (you can check which version is used by executing mpiexec --version
inside the container). Alternatively, maybe @AndreWeiner has some additional ideas or tips which may help you with the issue.
Regards Janis
After re-installing MPI version 4.1.2, the simulation was run in parallel normally.
Thanks @JanisGeise! ;)
Hi,
I followed the steps in tutorial 3 to run the cylinder case on OpenFOAM. The ./Allrun worked fine with blockMesh and decomposePar but came out with an error in renumberMesh and consequently with pimpleFoam.
The reumberMesh log file shows the following:
Thank you in advance!