PetscLayoutCreate#

Allocates PetscLayout object

Synopsis#

#include "petscis.h" 
PetscErrorCode PetscLayoutCreate(MPI_Comm comm, PetscLayout *map)

Collective

Input Parameter#

  • comm - the MPI communicator

Output Parameter#

Notes#

Typical calling sequence

Alternatively,

      PetscLayoutCreateFromSizes(comm,n,N,bs,&layout);

Optionally use any of the following

The PetscLayout object and methods are intended to be used in the PETSc Vec and Mat implementations; it is often not needed in user codes unless you really gain something in their use.

See Also#

PetscLayout, PetscLayoutSetLocalSize(), PetscLayoutSetSize(), PetscLayoutGetSize(), PetscLayoutGetLocalSize(), PetscLayout, PetscLayoutDestroy(), PetscLayoutGetRange(), PetscLayoutGetRanges(), PetscLayoutSetBlockSize(), PetscLayoutGetBlockSize(), PetscLayoutSetUp(), PetscLayoutCreateFromSizes()

Level#

advanced

Location#

src/vec/is/utils/pmap.c

Examples#

src/ts/tutorials/ex30.c
src/ksp/ksp/tutorials/ex85.c


Index of all IS routines
Table of Contents for all manual pages
Index of all manual pages