On Fri, Jan 5, 2018 at 10:43 PM, Hao Zhang <[email protected]> wrote:

> when PETSc crashed and reported this message. it also gives the following
> message
>
> matsetoption(a mat_new_nonzero_allocation_err petsc_false) to turn off
> this check
>
>
> is this a workaround or? Thanks!
>

1) Your preallocation is wrong for your matrix

2) If you do not care about performance, then you can use the call to
MatSetOption() to remove the error.
    If you do, please preallocate the matrix correctly.

  Thanks,

     Matt


> --
> Hao Zhang
> Dept. of Applid Mathematics and Statistics,
> Stony Brook University,
> Stony Brook, New York, 11790
>



-- 
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.caam.rice.edu/~mk51/>

Reply via email to