PetscLayoutCreateFromSizes#

Allocates PetscLayout space, sets the layout sizes, and sets the layout up.

Synopsis#

Collective

Input Parameters#

  • comm - the MPI communicator

  • n - the local size (or PETSC_DECIDE)

  • N - the global size (or PETSC_DECIDE)

  • bs - the block size (or PETSC_DECIDE)

Output Parameters#

  • map - the new PetscLayout

Notes#

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

is a shorthand for

See Also#

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

Level#

advanced

Location#

src/vec/is/utils/pmap.c


Edit on GitLab

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