MeshSetPreallocation

sets the matrix memory preallocation for matrices computed by Mesh

Synopsis

#include "petscmesh.h"   
PetscErrorCode PETSCDM_DLLEXPORT MeshSetPreallocation(Mesh mesh,PetscInt d_nz,const PetscInt d_nnz[],PetscInt o_nz,const PetscInt o_nnz[])
Not Collective

Input Parameters

See Also

MeshDestroy(), MeshCreateGlobalVector(), MeshGetGlobalIndices(), MatMPIAIJSetPreallocation(),
MatMPIBAIJSetPreallocation()

Level:advanced
Location:
src/dm/mesh/mesh.c
Index of all DA routines
Table of Contents for all manual pages
Index of all manual pages

mesh - the Mesh object
d_nz - maximum number of nonzeros in any row of diagonal block
d_nnz - number of nonzeros in each row of diagonal block
o_nz - maximum number of nonzeros in any row of off-diagonal block
o_nnz - number of nonzeros in each row of off-diagonal block