[petsc-users] MatSetValue problem (in Fortran)
Barry Smith
bsmith at petsc.dev
Mon Oct 23 09:18:33 CDT 2023
Are they then not using any preallocation? The "old dumb MatSetValues" used default preallocation. To reproduce that they can call MatXAIJSetPreallocation() with 10 and 3 as the local and nonlocal number of nonzeros per row.
Best to use -start_in_debugger or -on_error_attach_debugger to find the details of the crash
> On Oct 23, 2023, at 8:15 AM, Mark Adams <mfadams at lbl.gov> wrote:
>
> I have a Fortran user that is getting a segv in MatSetValues_MPIAIJ in v3.19 and v3.20 and it works with v3.17.
> They are trying to get a line number but I was thinking it might be worth trying the old dumb MatSetValues.
> Is that possible?
>
> Thanks,
> Mark
More information about the petsc-users
mailing list