Lines Matching refs:pcpatch
17 PC_PATCH *pcpatch = (PC_PATCH *)pc->data; in SNESPatchComputeResidual_Private() local
25 pt = pcpatch->currentPatch; in SNESPatchComputeResidual_Private()
26 PetscCall(ISGetSize(pcpatch->dofMappingWithoutToWithAll[pt], &size)); in SNESPatchComputeResidual_Private()
28 PetscCall(ISGetIndices(pcpatch->dofMappingWithoutToWithAll[pt], &indices)); in SNESPatchComputeResidual_Private()
30 PetscCall(VecGetArray(pcpatch->patchStateWithAll, &XWithAll)); in SNESPatchComputeResidual_Private()
34 PetscCall(VecRestoreArray(pcpatch->patchStateWithAll, &XWithAll)); in SNESPatchComputeResidual_Private()
36 PetscCall(ISRestoreIndices(pcpatch->dofMappingWithoutToWithAll[pt], &indices)); in SNESPatchComputeResidual_Private()
38 PetscCall(PCPatchComputeFunction_Internal(pc, pcpatch->patchStateWithAll, F, pt)); in SNESPatchComputeResidual_Private()
45 PC_PATCH *pcpatch = (PC_PATCH *)pc->data; in SNESPatchComputeJacobian_Private() local
53 pt = pcpatch->currentPatch; in SNESPatchComputeJacobian_Private()
54 PetscCall(ISGetSize(pcpatch->dofMappingWithoutToWithAll[pt], &size)); in SNESPatchComputeJacobian_Private()
56 PetscCall(ISGetIndices(pcpatch->dofMappingWithoutToWithAll[pt], &indices)); in SNESPatchComputeJacobian_Private()
58 PetscCall(VecGetArray(pcpatch->patchStateWithAll, &XWithAll)); in SNESPatchComputeJacobian_Private()
62 PetscCall(VecRestoreArray(pcpatch->patchStateWithAll, &XWithAll)); in SNESPatchComputeJacobian_Private()
64 PetscCall(ISRestoreIndices(pcpatch->dofMappingWithoutToWithAll[pt], &indices)); in SNESPatchComputeJacobian_Private()
66 …PetscCall(PCPatchComputeOperator_Internal(pc, pcpatch->patchStateWithAll, M, pcpatch->currentPatch… in SNESPatchComputeJacobian_Private()
254 PC_PATCH *pcpatch = (PC_PATCH *)patch->pc->data; in SNESSolve_Patch() local
295 PetscCall(VecGetArray(pcpatch->localState, &localState)); in SNESSolve_Patch()
296 …PetscCall(PetscSFBcastBegin(pcpatch->sectionSF, MPIU_SCALAR, globalState, localState, MPI_REPLACE)… in SNESSolve_Patch()
297 … PetscCall(PetscSFBcastEnd(pcpatch->sectionSF, MPIU_SCALAR, globalState, localState, MPI_REPLACE)); in SNESSolve_Patch()
298 PetscCall(VecRestoreArray(pcpatch->localState, &localState)); in SNESSolve_Patch()