Hi OpenFOAM team,
I experience a weird behavior when two coded functions are included in the controlDict. When the application is executed in parallel for the first time, functions get compiled, but the solver terminates with MPI_Recv error + MPI_ERR_TRUNCATE: message truncated. If I execute foamRun again, it starts solving. I include a minimal case to reproduce the problem.
Steps to reproduce
- Download the case
- Execute
Allrun script
Tested environments:
- Official openfoam/openfoam11-paraview510 docker image for MacOS
- HPC cluster installation of OpenFOAM-11 compiled with: gcc/10.3.0, openmpi/4.1.1
OpenMPI error:

Minimal case:
cavity.zip
Thanks for your help,
Best
Jiri