[petsc-users] About creating Parallel Matrix

Matthew Knepley knepley at gmail.com
Sun Dec 2 19:24:50 CST 2018


On Sun, Dec 2, 2018 at 8:12 PM Maahi Talukder via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> Hello All,
>
> I have created parallel matrix using MatGetOwnershipRange
> and MatSetValues.  Now when I want to  run the program with the command
> ' mpiexec -n  x ./Petsctest1' , if x <3, then the program runs just fine.
> But if x > 3 , then it shows me the following error message -
>

It sounds like you are running in optimized mode and gave bogus (row, col)
values. Run using debugging, and preferably
run under valgrind.

  Thanks,

    Matt


> [0]PETSC ERROR: Caught signal number 15 Terminate: Some process (or the
> batch system) has told this process to end
> [0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
> [0]PETSC ERROR: or see
> http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind
> [0]PETSC ERROR: or try http://valgrind.org on GNU/linux and Apple Mac OS
> X to find memory corruption errors
> [0]PETSC ERROR: likely location of problem given in stack below
> [0]PETSC ERROR: ---------------------  Stack Frames
> ------------------------------------
> [0]PETSC ERROR: Note: The EXACT line numbers in the stack are not
> available,
> [0]PETSC ERROR:       INSTEAD the line number of the start of the function
> [0]PETSC ERROR:       is given.
> [0]PETSC ERROR: [0] PetscMemcpy line 1947
> /home/maahi/petsc/include/petscsys.h
> [0]PETSC ERROR: [0] MatSetValues_SeqAIJ line 427
> /home/maahi/petsc/src/mat/impls/aij/seq/aij.c
> [0]PETSC ERROR: [0] MatSetValues line 1316
> /home/maahi/petsc/src/mat/interface/matrix.c
>
> So depending on the number of processors I give, the error message shows
> up or not. Could you please shed some light on that ?
>
> Regards,
> Maahi Talukder
> MSc Student
> Clarkson University
>
>
>

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181202/78317dd4/attachment.html>


More information about the petsc-users mailing list