Pushes a read-only lock on a vector to prevent it from writing
PetscErrorCode VecLockReadPush(Vec x)
Logically Collective on Vec
If this is set then calls to VecGetArray() or VecSetValues() or any other routines that change the vectors values will fail.
The call can be nested, i.e., called multiple times on the same vector, but each VecLockReadPush(x) has to have one matching
VecLockReadPop(x), which removes the latest read-only lock.
VecRestoreArray(), VecGetArrayRead(), VecLockReadPop(), VecLockGet()
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages