Lines Matching refs:ctxVec
159 Vec ctxVec = NULL; in TestShellEvaluate() local
167 PetscCall(DMFieldShellGetContext(field, &ctxVec)); in TestShellEvaluate()
171 PetscCall(VecGetArrayRead(ctxVec, &mult)); in TestShellEvaluate()
205 PetscCall(VecRestoreArrayRead(ctxVec, &mult)); in TestShellEvaluate()
211 Vec ctxVec = NULL; in TestShellDestroy() local
214 PetscCall(DMFieldShellGetContext(field, &ctxVec)); in TestShellDestroy()
215 PetscCall(VecDestroy(&ctxVec)); in TestShellDestroy()
279 Vec ctxVec; in main() local
283 PetscCall(VecCreateSeq(PETSC_COMM_SELF, nc, &ctxVec)); in main()
284 PetscCall(VecSetUp(ctxVec)); in main()
285 PetscCall(VecGetArray(ctxVec, &array)); in main()
287 PetscCall(VecRestoreArray(ctxVec, &array)); in main()
288 PetscCall(DMFieldCreateShell(dm, nc, DMFIELD_VERTEX, (void *)ctxVec, &field)); in main()