Re: [petsc-dev] [petsc-users] MatPreallocatorPreallocate segfault with PETSC 3.16

2022-02-01 Thread Jed Brown
Stefano Zampini writes: > Il giorno mar 1 feb 2022 alle ore 18:34 Jed Brown ha > scritto: > >> Patrick Sanan writes: >> >> > Am Di., 1. Feb. 2022 um 16:20 Uhr schrieb Jed Brown : >> > >> >> Patrick Sanan writes: >> >> >> >> > Sorry about the delay on this. I can reproduce. >> >> > >> >> >

Re: [petsc-dev] [petsc-users] MatPreallocatorPreallocate segfault with PETSC 3.16

2022-02-01 Thread Stefano Zampini
Il giorno mar 1 feb 2022 alle ore 18:34 Jed Brown ha scritto: > Patrick Sanan writes: > > > Am Di., 1. Feb. 2022 um 16:20 Uhr schrieb Jed Brown : > > > >> Patrick Sanan writes: > >> > >> > Sorry about the delay on this. I can reproduce. > >> > > >> > This regression appears to be a result of

Re: [petsc-dev] [petsc-users] MatPreallocatorPreallocate segfault with PETSC 3.16

2022-02-01 Thread Patrick Sanan
That works, as in the attached example - Marius, would that work for your case? Am Di., 1. Feb. 2022 um 16:33 Uhr schrieb Jed Brown : > Patrick Sanan writes: > > > Am Di., 1. Feb. 2022 um 16:20 Uhr schrieb Jed Brown : > > > >> Patrick Sanan writes: > >> > >> > Sorry about the delay on this. I

Re: [petsc-dev] [petsc-users] MatPreallocatorPreallocate segfault with PETSC 3.16

2022-02-01 Thread Jed Brown
Patrick Sanan writes: > Am Di., 1. Feb. 2022 um 16:20 Uhr schrieb Jed Brown : > >> Patrick Sanan writes: >> >> > Sorry about the delay on this. I can reproduce. >> > >> > This regression appears to be a result of this optimization: >> > https://gitlab.com/petsc/petsc/-/merge_requests/4273 >> >>

Re: [petsc-dev] [petsc-users] MatPreallocatorPreallocate segfault with PETSC 3.16

2022-02-01 Thread Patrick Sanan
Am Di., 1. Feb. 2022 um 16:20 Uhr schrieb Jed Brown : > Patrick Sanan writes: > > > Sorry about the delay on this. I can reproduce. > > > > This regression appears to be a result of this optimization: > > https://gitlab.com/petsc/petsc/-/merge_requests/4273 > > Thanks for tracking this down. Is

Re: [petsc-dev] [petsc-users] MatPreallocatorPreallocate segfault with PETSC 3.16

2022-02-01 Thread Jed Brown
Patrick Sanan writes: > Sorry about the delay on this. I can reproduce. > > This regression appears to be a result of this optimization: > https://gitlab.com/petsc/petsc/-/merge_requests/4273 Thanks for tracking this down. Is there a reason to prefer preallocating twice ierr =

Re: [petsc-dev] [petsc-users] MatPreallocatorPreallocate segfault with PETSC 3.16

2022-02-01 Thread Patrick Sanan
Sorry about the delay on this. I can reproduce. This regression appears to be a result of this optimization: https://gitlab.com/petsc/petsc/-/merge_requests/4273 The changes there including having MatPreallocator destroy its internal hash structure within MatPreallocatorPreallocate(), which