Dummy library such as Pstream is used on macOS
While executing in parallel mode, the dummy Pstream library is used. But there is correct Pstream library in $FOAM_LIBBIN/$FOAM_MPI.
Steps to reproduce
After building the ThirdPaty code, it is necessary for the following command.
for i in $FOAM_EXT_LIBBIN/*.dylib ;do install_name_tool -id $i $i done
After that, build the OpenFOAM code.
On the directory of tutorials/incompressible/icoFoam/cavityMappingTest.
In the "log.icoFOAM,
` --> FOAM FATAL ERROR: The dummy Pstream library cannot be used in parallel mode
From function static bool Foam::UPstream::init(int &, char **&, const bool) in file UPstream.C at line 50. FOAM exiting`
What is the current bug behaviour?
FOAM FATAL ERROR.
What is the expected correct behavior?
Normal exiting in parallel mode.
Relevant logs and/or images
- OpenFOAM version : v1912
- Operating system : macOS 10.15.4
- Hardware info : MacBook Pro
- Compiler : Apple clang version 11.0.3 (clang-1126.96.36.199)
Current macOS ignores the path of LD_LIBRARY_PATH and DYLD_LIBRARY_PATH. So dummy library was loaded instead of correct library.
On macOS, it has to use the library path explicitly. I attached the patch file.