[petsc-users] running error

paul zhang paulhuaizhang at gmail.com
Mon Dec 1 15:50:54 CST 2014


Thanks for explanation. Let me see if I can find some samples.

Best,
Paul


Huaibao (Paul) Zhang
*Gas Surface Interactions Lab*
Department of Mechanical Engineering
University of Kentucky,
Lexington,
KY, 40506-0503
*Office*: 216 Ralph G. Anderson Building
*Web*:gsil.engineering.uky.edu

On Mon, Dec 1, 2014 at 4:49 PM, Jed Brown <jed at jedbrown.org> wrote:

> 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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141201/51084d76/attachment.html>


More information about the petsc-users mailing list