:orphan: # PetscSectionSetPointMajor Sets the flag for dof ordering, `PETSC_TRUE` for point major, otherwise it will be field major ## Synopsis ``` #include "petscsection.h" PetscErrorCode PetscSectionSetPointMajor(PetscSection s, PetscBool pm) ``` Not Collective ## Input Parameters - ***s -*** the `PetscSection` - ***pm -*** the flag for point major ordering ## Note Field-major order is not recommended unless you are managing the entire problem yourself, since many higher-level functions in PETSc depend on point-major order. Point major order means the degrees of freedom are stored as follows ```none all the degrees of freedom for each point are stored contiquously, one point after another (respecting a permutation set with `PetscSectionSetPermutation()`) for each point the degrees of freedom for each field (starting with the unnamed default field) are listed in order by field ``` Field major order means the degrees of freedom are stored as follows ```none all degrees of freedom for each field (including the unnamed default field) are stored contiquously, one field after another for each field (started with unnamed default field) the degrees of freedom for each point are listed in order by point (respecting a permutation set with `PetscSectionSetPermutation()`) ``` ## See Also [PetscSection](sec_petscsection), `PetscSection`, `PetscSectionGetPointMajor()`, `PetscSectionSetPermutation()` ## Level intermediate ## Location src/vec/is/section/interface/section.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/section/interface/section.c) [Index of all PetscSection routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)