Re: [petsc-users] Question-Memory of matsetvalue

2022-12-30 Thread Jed Brown
This is what I'd expect to observe if you didn't preallocate correctly for the second matrix, which has more nonzeros per row. https://petsc.org/release/docs/manual/mat/#sec-matsparse 김성익 writes: > Hello, > > > > I have a question about memory of matsetvalue. > > When I assembly the local

Re: [petsc-users] Question-Memory of matsetvalue

2022-12-30 Thread Matthew Knepley
On Fri, Dec 30, 2022 at 4:36 AM 김성익 wrote: > Hello, > > > > I have a question about memory of matsetvalue. > > When I assembly the local matrix to global matrix, I’m just using > matsetvalue. > Because the connectivity is so complex I can’t use matsetvalues. > > I asked this question because I