PetscLayoutCreateFromSizes#

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

Synopsis#

Collective

Input Parameters#

Output Parameter#

Note#

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

is a shorthand for

  PetscLayoutCreate(comm, &layout);
  PetscLayoutSetLocalSize(layout, n);
  PetscLayoutSetSize(layout, N);
  PetscLayoutSetBlockSize(layout, bs);
  PetscLayoutSetUp(layout);

See Also#

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

Level#

advanced

Location#

src/vec/is/utils/pmap.c

Examples#

src/vec/is/is/tests/ex11.c
src/vec/is/is/tests/ex9.c
src/vec/is/sf/tests/ex18.c
src/mat/tests/ex312.c


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