Home
last modified time | relevance | path

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

/petsc/src/ksp/pc/impls/is/
H A Dpcis.c328 PC pc_ctx; in PCISSetUp() local
338 PetscCall(KSPGetPC(pcis->ksp_D, &pc_ctx)); in PCISSetUp()
339 PetscCall(PCSetType(pc_ctx, PCLU)); in PCISSetUp()
351 PetscCall(KSPGetPC(pcis->ksp_N, &pc_ctx)); in PCISSetUp()
352 PetscCall(PCSetType(pc_ctx, PCLU)); in PCISSetUp()
359 …PetscCall(PetscOptionsGetReal(((PetscObject)pc_ctx)->options, ((PetscObject)pc_ctx)->prefix, "-pc_… in PCISSetUp()
361 …PetscCall(PetscOptionsGetBool(((PetscObject)pc_ctx)->options, ((PetscObject)pc_ctx)->prefix, "-pc_… in PCISSetUp()
363 …PetscCall(PetscOptionsGetBool(((PetscObject)pc_ctx)->options, ((PetscObject)pc_ctx)->prefix, "-pc_… in PCISSetUp()
365 …PetscCall(PetscOptionsGetReal(((PetscObject)pc_ctx)->options, ((PetscObject)pc_ctx)->prefix, "-pc_… in PCISSetUp()
367 …PetscCall(PetscOptionsGetBool(((PetscObject)pc_ctx)->options, ((PetscObject)pc_ctx)->prefix, "-pc_… in PCISSetUp()
[all …]
/petsc/src/ksp/pc/impls/bddc/
H A Dbddcfetidp.c103 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()
[all …]
/petsc/src/ksp/pc/impls/is/nn/
H A Dnn.c339 PC pc_ctx, inner_pc; in PCNNCreateCoarseMatrix() local
346 PetscCall(KSPGetPC(pcnn->ksp_coarse, &pc_ctx)); in PCNNCreateCoarseMatrix()
347 PetscCall(PCSetType(pc_ctx, PCREDUNDANT)); in PCNNCreateCoarseMatrix()
349 PetscCall(PCRedundantGetKSP(pc_ctx, &inner_ksp)); in PCNNCreateCoarseMatrix()