Lines Matching refs:pc_ctx

103   FETIDPPC_ctx pc_ctx;  in PCBDDCDestroyFETIDPPC()  local
106 PetscCall(PCShellGetContext(pc, &pc_ctx)); in PCBDDCDestroyFETIDPPC()
107 PetscCall(VecDestroy(&pc_ctx->lambda_local)); in PCBDDCDestroyFETIDPPC()
108 PetscCall(MatDestroy(&pc_ctx->B_Ddelta)); in PCBDDCDestroyFETIDPPC()
109 PetscCall(VecScatterDestroy(&pc_ctx->l2g_lambda)); in PCBDDCDestroyFETIDPPC()
110 PetscCall(MatDestroy(&pc_ctx->S_j)); in PCBDDCDestroyFETIDPPC()
111 PetscCall(PCDestroy(&pc_ctx->pc)); /* decrease PCBDDC reference count */ in PCBDDCDestroyFETIDPPC()
112 PetscCall(VecDestroy(&pc_ctx->xPg)); in PCBDDCDestroyFETIDPPC()
113 PetscCall(VecDestroy(&pc_ctx->yPg)); in PCBDDCDestroyFETIDPPC()
114 PetscCall(PetscFree(pc_ctx)); in PCBDDCDestroyFETIDPPC()
958 FETIDPPC_ctx pc_ctx; in FETIDPPCApply_Kernel() local
962 PetscCall(PCShellGetContext(fetipc, &pc_ctx)); in FETIDPPCApply_Kernel()
963 pcis = (PC_IS *)pc_ctx->pc->data; in FETIDPPCApply_Kernel()
965 …PetscCall(VecScatterBegin(pc_ctx->l2g_lambda, x, pc_ctx->lambda_local, INSERT_VALUES, SCATTER_REVE… in FETIDPPCApply_Kernel()
966 …PetscCall(VecScatterEnd(pc_ctx->l2g_lambda, x, pc_ctx->lambda_local, INSERT_VALUES, SCATTER_REVERS… in FETIDPPCApply_Kernel()
968 PetscCall(MatMultTranspose(pc_ctx->B_Ddelta, pc_ctx->lambda_local, pcis->vec2_B)); in FETIDPPCApply_Kernel()
971 PetscCall(MatMultTranspose(pc_ctx->S_j, pcis->vec2_B, pcis->vec1_B)); in FETIDPPCApply_Kernel()
973 PetscCall(MatMult(pc_ctx->S_j, pcis->vec2_B, pcis->vec1_B)); in FETIDPPCApply_Kernel()
976 PetscCall(MatMult(pc_ctx->B_Ddelta, pcis->vec1_B, pc_ctx->lambda_local)); in FETIDPPCApply_Kernel()
978 …PetscCall(VecScatterBegin(pc_ctx->l2g_lambda, pc_ctx->lambda_local, y, ADD_VALUES, SCATTER_FORWARD… in FETIDPPCApply_Kernel()
979 …PetscCall(VecScatterEnd(pc_ctx->l2g_lambda, pc_ctx->lambda_local, y, ADD_VALUES, SCATTER_FORWARD)); in FETIDPPCApply_Kernel()
999 FETIDPPC_ctx pc_ctx; in FETIDPPCView() local
1009 PetscCall(PCShellGetContext(pc, &pc_ctx)); in FETIDPPCView()
1011 PetscCall(PetscObjectTypeCompare((PetscObject)pc_ctx->S_j, MATSCHURCOMPLEMENT, &isschur)); in FETIDPPCView()
1017 PetscCall(PetscViewerGetSubViewer(viewer, PetscObjectComm((PetscObject)pc_ctx->S_j), &sviewer)); in FETIDPPCView()
1021 PetscCall(MatView(pc_ctx->S_j, sviewer)); in FETIDPPCView()
1025 …PetscCall(PetscViewerRestoreSubViewer(viewer, PetscObjectComm((PetscObject)pc_ctx->S_j), &sviewer)… in FETIDPPCView()
1026 PetscCall(PetscObjectTypeCompare((PetscObject)pc_ctx->B_Ddelta, MATSHELL, &isshell)); in FETIDPPCView()
1030 PetscCall(MatShellGetContext(pc_ctx->B_Ddelta, &ctx)); in FETIDPPCView()
1031 … PetscCall(PetscViewerGetSubViewer(viewer, PetscObjectComm((PetscObject)pc_ctx->S_j), &sviewer)); in FETIDPPCView()
1042 …PetscCall(PetscViewerRestoreSubViewer(viewer, PetscObjectComm((PetscObject)pc_ctx->S_j), &sviewer)… in FETIDPPCView()