Lines Matching refs:hctx
52 MatMFFD_WP *hctx = (MatMFFD_WP *)ctx->hctx; in MatMFFDCompute_WP() local
57 if (hctx->computenormU || !ctx->ncurrenth) { in MatMFFDCompute_WP()
59 hctx->normUfact = PetscSqrtReal(1.0 + normU); in MatMFFDCompute_WP()
67 *h = ctx->error_rel * hctx->normUfact / norma; in MatMFFDCompute_WP()
87 MatMFFD_WP *hctx = (MatMFFD_WP *)ctx->hctx; in MatMFFDView_WP() local
93 if (hctx->computenormU) { in MatMFFDView_WP()
112 MatMFFD_WP *hctx = (MatMFFD_WP *)ctx->hctx; in MatMFFDSetFromOptions_WP() local
116 …te_normu", "Compute the norm of u", "MatMFFDWPSetComputeNormU", hctx->computenormU, &hctx->compute… in MatMFFDSetFromOptions_WP()
125 PetscCall(PetscFree(ctx->hctx)); in MatMFFDDestroy_WP()
132 MatMFFD_WP *hctx = (MatMFFD_WP *)ctx->hctx; in MatMFFDWPSetComputeNormU_P() local
135 hctx->computenormU = flag; in MatMFFDWPSetComputeNormU_P()
178 MatMFFD_WP *hctx; in MatCreateMFFD_WP() local
182 PetscCall(PetscNew(&hctx)); in MatCreateMFFD_WP()
183 ctx->hctx = (void *)hctx; in MatCreateMFFD_WP()
184 hctx->computenormU = PETSC_FALSE; in MatCreateMFFD_WP()