Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 380
    • Issues 380
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #1661

Closed
Open
Created Apr 02, 2020 by Shigeki Fujii@fski

Dummy library such as Pstream is used on macOS

Summary

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.

./Allrun-parallel

Example case

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

Environment information

  • OpenFOAM version : v1912
  • Operating system : macOS 10.15.4
  • Hardware info : MacBook Pro
  • Compiler : Apple clang version 11.0.3 (clang-1103.0.32.29)

Possible fixes

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.

parallel.patch

Assignee
Assign to
Time tracking