On Thu, Jan 14, 2021 at 11:58 AM Qin Lu via petsc-users <
[email protected]> wrote:

> Hello,
>
> My program got error 55 from calling MatMPIAIJSetPreallocation with Petsc
> version 3.12.5, what does this error mean? Interestingly, the same program
> using an older version 3.4.2 works fine. I did make necessary interface
> change in my program when I upgraded to 3.12.5.
>

1) You should always call CHKERRQ(ierr) after a Petsc call. Then you will
get the full error message and stack to send in.

2) Your error code is here:

  https://gitlab.com/petsc/petsc/-/blob/v3.12.5/include/petscerror.h#L17

3) It is a memory error. You asked for more memory than your machine could
allocate.

  Thanks,

     Matt


> Thanks in advance for your help.
>
> Regards,
> Qin
>


-- 
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/>

Reply via email to