Home
last modified time | relevance | path

Searched refs:XWithAll (Results 1 – 1 of 1) sorted by relevance

/petsc/src/snes/impls/patch/
H A Dsnespatch.c21 PetscScalar *XWithAll; in SNESPatchComputeResidual_Private() local
30 PetscCall(VecGetArray(pcpatch->patchStateWithAll, &XWithAll)); in SNESPatchComputeResidual_Private()
32 for (i = 0; i < size; ++i) XWithAll[indices[i]] = X[i]; in SNESPatchComputeResidual_Private()
34 PetscCall(VecRestoreArray(pcpatch->patchStateWithAll, &XWithAll)); in SNESPatchComputeResidual_Private()
49 PetscScalar *XWithAll; in SNESPatchComputeJacobian_Private() local
58 PetscCall(VecGetArray(pcpatch->patchStateWithAll, &XWithAll)); in SNESPatchComputeJacobian_Private()
60 for (i = 0; i < size; ++i) XWithAll[indices[i]] = X[i]; in SNESPatchComputeJacobian_Private()
62 PetscCall(VecRestoreArray(pcpatch->patchStateWithAll, &XWithAll)); in SNESPatchComputeJacobian_Private()