[petsc-users] PETSc crashes when different rank sets row, col and A values using MatCreateSeqAIJWithArrays

Barry Smith bsmith at petsc.dev
Sun Feb 4 14:48:40 CST 2024


   Is each rank trying to create its own sequential matrix with MatCreateSeqAIJWithArrays() or did you mean MatCreateMPIAIJWithArrays()?

   If the latter, then possibly one of your size arguments is wrong or the indices are incorrect for the given sizes.

   Barry


> On Feb 4, 2024, at 3:15 PM, Maruthi NH <maruthinh at gmail.com> wrote:
> 
> Hi all,
> 
> I have a row, col, and A values in CSR format; let's say rank 0 has 200 unknowns and rank 1 has 100 unknowns. If I use MatCreateSeqAIJWithArrays to create a Matrix, it crashes. However, if each rank has an equal number of unknowns, it works fine. Please let me know how to proceed
> 
> 
> Regards,
> Maruthi



More information about the petsc-users mailing list