[petsc-users] Problem coupling Petsc into OpenFOAM

Balay, Satish balay at mcs.anl.gov
Wed Apr 10 08:23:43 CDT 2019

Runtime error? You might have to add the path to $PETSC_ARCH/lib in  LD_LIBRARY_PATH env variable
or - to your link command. If linux/gcc - the linker option is -Wl,-rpath,$PETSC_ARCH/lib

If not - send detail logs.


On Wed, 10 Apr 2019, Vu Do Quoc via petsc-users wrote:

> Hi all,
> I am trying to insert Petsc to OpenFOAM opensource software.
> I have been successfully compiling Petsc with an available solver in
> OpenFOAM by linking it with the shared library libpetsc.so. However, when I
> call the solver to run a test case, I got an error saying that:
> "libpetsc.so cannot be found", even though the library still exists in the
> $PETSC_ARCH/lib folder.
> I have been struggling for weeks but still, have not been able to figure it
> out. Therefore I would be very grateful for any suggestion to solve this
> problem.
> Thanks in advance for your time,
> Best regards,
> Vu Do

More information about the petsc-users mailing list