PetscSectionCreate

Allocates PetscSection space and sets the map contents to the default.

Synopsis

#include "petscvec.h"   
PetscErrorCode PetscSectionCreate(MPI_Comm comm, PetscSection *s)
Collective on MPI_Comm

Input Parameters

comm - the MPI communicator
s - pointer to the section

Notes: Typical calling sequence PetscLayoutCreate(MPI_Comm,PetscLayout *); PetscLayoutSetBlockSize(PetscLayout,1); PetscLayoutSetSize(PetscLayout,n) or PetscLayoutSetLocalSize(PetscLayout,N); PetscLayoutSetUp(PetscLayout); PetscLayoutGetSize(PetscLayout,PetscInt *); or PetscLayoutGetLocalSize(PetscLayout,PetscInt *;) PetscLayoutDestroy(PetscLayout);

The PetscSection 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.

Fortran Notes

Not available from Fortran

See Also

PetscSection, PetscSectionDestroy()

Level:developer
Location:
src/vec/vec/impls/seq/vsection.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages