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 <[email protected]> wrote: > paul zhang <[email protected]> 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. >
