#include "petscvec.h" #undef __FUNCT__ #define __FUNCT__ "PetscLayoutInitialize" PetscErrorCode PETSCVEC_DLLEXPORT PetscLayoutCreate(MPI_Comm comm,PetscLayout *map)Collective on MPI_Comm
comm | - the MPI communicator | |
map | - pointer to the map |
Notes: Typical calling sequence PetscLayoutCreate(MPI_Comm,PetscLayout *); PetscLayoutSetBlockSize(PetscLayout,1); PetscLayoutSetSize(PetscLayout,n) or PetscLayoutSetLocalSize(PetscLayout,N); PetscLayoutSetUp(PetscLayout); PetscLayoutGetSize(PetscLayout,PetscInt *); PetscLayoutDestroy(PetscLayout);
Unlike regular PETSc objects you work with a pointer to the object instead of the object directly.
The PetscLayout object and methods are intended to be used in the PETSc Vec and Mat implementions; it is recommended they not be used in user codes unless you really gain something in their use.
Level:developer
Location:src/vec/vec/impls/mpi/pmap.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages