Re: [petsc-users] MatSetValues in runtime

2016-12-05 Thread Dave May
On 5 December 2016 at 16:49, Massoud Rezavand wrote: > Dear Petsc team, > > In order to create a parallel matrix and solve by KSP, is it possible to > directly use MatSetValues() in runtime when each matrix entry is just > created without MatMPIAIJSetPreallocation()? >

[petsc-users] MatSetValues in runtime

2016-12-05 Thread Massoud Rezavand
Dear Petsc team, In order to create a parallel matrix and solve by KSP, is it possible to directly use MatSetValues() in runtime when each matrix entry is just created without MatMPIAIJSetPreallocation()? I mean, when you only know the global size of Mat, and the number of nonzeros per row is