[petsc-users] How to interface with PETSc from another application?

Jed Brown jed at jedbrown.org
Wed Oct 4 18:14:43 CDT 2017


Matthew Knepley <knepley at gmail.com> writes:

> On Wed, Oct 4, 2017 at 6:52 PM, Klaus Burkart <k_burkart at yahoo.com> wrote:
>
>> Thank you for the hint, the problem becomes clearer, it's looking for
>> libpetsc.so.3.7   which is not found  but is located in the same directory
>> as libpetsc.so  but doesn't come with the .so ending
>>
>> ldd
>>
>>     libpetsc.so.3.7 => not found
>>
>
> The build system you have is adding a spurious suffix to the library. You
> can either fix it, or make a link
> to that name in the lib directory.

WUT?

That file should exist in $PETSC_DIR/$PETSC_ARCH/lib/ and should be a
symlink to the real library (libpetsc.so.3.7.5 or whatever).
(libpetsc.so is also a symlink to the same place.)  Your LD_LIBRARY_PATH
is probably still not set correctly -- when you get it right, ldd will
resolve.


More information about the petsc-users mailing list