#include "petscmat.h" PetscErrorCode MatCreateScaLAPACK(MPI_Comm comm,PetscInt mb,PetscInt nb,PetscInt M,PetscInt N,PetscInt rsrc,PetscInt csrc,Mat *A)Collective
comm | - MPI communicator | |
mb | - row block size (or PETSC_DECIDE to have it set) | |
nb | - column block size (or PETSC_DECIDE to have it set) | |
M | - number of global rows | |
N | - number of global columns | |
rsrc | - coordinate of process that owns the first row of the distributed matrix | |
csrc | - coordinate of process that owns the first column of the distributed matrix |
A | - the matrix |
-mat_scalapack_block_sizes | - size of the blocks to use (one or two integers separated by comma) |
It is recommended that one use the MatCreate(), MatSetType() and/or MatSetFromOptions(), MatXXXXSetPreallocation() paradigm instead of this routine directly. [MatXXXXSetPreallocation() is, for example, MatSeqAIJSetPreallocation]