Home
last modified time | relevance | path

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

/petsc/src/snes/interface/noise/
H A Dsnesmfj2.c201 MFCtx_Private *mfctx; in MatCreateSNESMFMore() local
207 PetscCall(PetscNew(&mfctx)); in MatCreateSNESMFMore()
208 mfctx->sp = NULL; in MatCreateSNESMFMore()
209 mfctx->snes = snes; in MatCreateSNESMFMore()
210 mfctx->error_rel = PETSC_SQRT_MACHINE_EPSILON; in MatCreateSNESMFMore()
211 mfctx->umin = 1.e-6; in MatCreateSNESMFMore()
212 mfctx->h = 0.0; in MatCreateSNESMFMore()
213 mfctx->need_h = PETSC_TRUE; in MatCreateSNESMFMore()
214 mfctx->need_err = PETSC_FALSE; in MatCreateSNESMFMore()
215 mfctx->compute_err = PETSC_FALSE; in MatCreateSNESMFMore()
[all …]
/petsc/src/mat/impls/mffd/
H A Dmffd.c485 MatMFFD mfctx; in MatMFFDSetOptionsPrefix() local
489 PetscCall(MatShellGetContext(mat, &mfctx)); in MatMFFDSetOptionsPrefix()
490 PetscValidHeaderSpecific(mfctx, MATMFFD_CLASSID, 1); in MatMFFDSetOptionsPrefix()
491 PetscCall(PetscObjectSetOptionsPrefix((PetscObject)mfctx, prefix)); in MatMFFDSetOptionsPrefix()
497 MatMFFD mfctx; in MatSetFromOptions_MFFD() local
502 PetscCall(MatShellGetContext(mat, &mfctx)); in MatSetFromOptions_MFFD()
503 PetscValidHeaderSpecific(mfctx, MATMFFD_CLASSID, 1); in MatSetFromOptions_MFFD()
504 PetscObjectOptionsBegin((PetscObject)mfctx); in MatSetFromOptions_MFFD()
505 …d_type", "Matrix free type", "MatMFFDSetType", MatMFFDList, ((PetscObject)mfctx)->type_name, ftype… in MatSetFromOptions_MFFD()
508 …et sqrt relative error in function", "MatMFFDSetFunctionError", mfctx->error_rel, &mfctx->error_re… in MatSetFromOptions_MFFD()
[all …]