Re: [petsc-users] Prelloc: Get coordinates of local diagonal submatrix

2016-04-07 Thread Jed Brown
Florian Lindner writes: >Am I right to assume that nnz is to in the the PETSc ordering of rows and not >application ordering? Yes signature.asc Description: PGP signature

Re: [petsc-users] Prelloc: Get coordinates of local diagonal submatrix

2016-04-07 Thread Florian Lindner
Hello, > MatGetOwnershipRangesColumn Thanks! That's what I was looking for. I have set a MatSetLocalToGlobalMapping on the matrix and I use MatMPIAIJSetPreallocation(_matrixA.matrix, 0, d_nnz, 0, o_nnz) to set the preallocation. Am I right to assume that nnz is to in the the PETSc ordering

Re: [petsc-users] Prelloc: Get coordinates of local diagonal submatrix

2016-04-06 Thread Matthew Knepley
On Wed, Apr 6, 2016 at 10:12 AM, Florian Lindner wrote: > Hello, > > in order to preallocate I have to know whether a non-zero will be in the > local diagonal submatrix or not. > > >

[petsc-users] Prelloc: Get coordinates of local diagonal submatrix

2016-04-06 Thread Florian Lindner
Hello, in order to preallocate I have to know whether a non-zero will be in the local diagonal submatrix or not. http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatMPIAIJSetPreallocation.html says: The DIAGONAL portion of the local submatrix of a processor can be defined as