Re: [petsc-users] Must I destroy the local matrix I have (created and) set with MatISSetLocalMat ?

2017-05-30 Thread Jed Brown
Franck Houssen writes: > Must I destroy the local matrix I have (created and) set with > MatISSetLocalMat ? The implementation references the local matrix so you need to destroy your copy. This pattern is always used when setting sub-objects like this. static

Re: [petsc-users] Must I destroy the local matrix I have (created and) set with MatISSetLocalMat ?

2017-05-30 Thread Matthew Knepley
On Tue, May 30, 2017 at 2:21 AM, Franck Houssen wrote: > Must I destroy the local matrix I have (created and) set with > MatISSetLocalMat ? > Yes. Matt > Franck > -- What most experimenters take for granted before they begin their experiments is infinitely

[petsc-users] Must I destroy the local matrix I have (created and) set with MatISSetLocalMat ?

2017-05-30 Thread Franck Houssen
Must I destroy the local matrix I have (created and) set with MatISSetLocalMat ? Franck