#include "petscsection.h" #include "petscvec.h" PetscErrorCode VecSetValuesSection(Vec v, PetscSection s, PetscInt point, PetscScalar values[], InsertMode mode)Not collective
v | - the Vec | |
s | - the organizing PetscSection | |
point | - the point | |
values | - the array of input values | |
mode | - the insertion mode, either ADD_VALUES or INSERT_VALUES |
Note: This is similar to MatSetValuesStencil(). The Fortran binding is
VecSetValuesSectionF90(vec, section, point, values, mode, ierr)