VecLocked#

Deprecated alias for VecSetErrorIfLocked(); raises an error if the Vec is currently locked for read

Synopsis#

#include <petscvec.h>
PetscErrorCode VecLocked(Vec x, int arg)

Not Collective; No Fortran Support

Input Parameters#

  • x - the Vec to test

  • arg - the argument position of x in the caller (used in the error message)

Note#

Use VecSetErrorIfLocked() in new code; this macro is retained only for backwards compatibility.

See Also#

Vec, VecSetErrorIfLocked(), VecLockReadPush(), VecLockReadPop()

Level#

deprecated

Location#

include/petscvec.h


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