[petsc-users] running error

Jed Brown jed at jedbrown.org
Mon Dec 1 15:49:00 CST 2014


paul zhang <paulhuaizhang at gmail.com> writes:

> Hi Jed,
>
> Now I see PETSc is compiled correctly. However, when I attempted to call
> "petscksp.h" in my own program (quite simple one), it failed for some
> reason. Attached you can see two cases. The first is just the test of MPI,
> which is fine. The second is one added PETSc, which has segment fault as it
> went to
>
>         MPI_Comm_rank (MPI_COMM_WORLD, &rank);        /* get current
> process id */

I don't see anything obviously wrong, though cout is probably buffered
so execution might have gotten further.  As I said earlier, you should
run in a debugger.  I'm sorry, but we don't have time to debug your
configuration over email---it takes away from time we would otherwise
spend improving the library.

I recommend starting with a working example from the PETSc tree and
incrementally change it to do what you want.  Make sure your hand-rolled
CMake is linking exactly the same as PETSc.  Or use FindPETSc.cmake.

> Can you shed some light? The MPI version is 1.8.3.

"MPI" is a standard, "Open MPI" is the implementation you are using.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141201/38e858d1/attachment.pgp>


More information about the petsc-users mailing list