Lines Matching refs:mfctx

485   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()
509 …fd_period", "how often h is recomputed", "MatMFFDSetPeriod", mfctx->recomputeperiod, &mfctx->recom… in MatSetFromOptions_MFFD()
515 …lex number trick to compute the matrix-vector product", "None", mfctx->usecomplex, &mfctx->usecomp… in MatSetFromOptions_MFFD()
517 PetscTryTypeMethod(mfctx, setfromoptions, PetscOptionsObject); in MatSetFromOptions_MFFD()
584 MatMFFD mfctx; in MatCreate_MFFD() local
589 …PetscCall(PetscHeaderCreate(mfctx, MATMFFD_CLASSID, "MatMFFD", "Matrix-free Finite Differencing", … in MatCreate_MFFD()
591 mfctx->error_rel = PETSC_SQRT_MACHINE_EPSILON; in MatCreate_MFFD()
592 mfctx->recomputeperiod = 1; in MatCreate_MFFD()
593 mfctx->count = 0; in MatCreate_MFFD()
594 mfctx->currenth = 0.0; in MatCreate_MFFD()
595 mfctx->historyh = NULL; in MatCreate_MFFD()
596 mfctx->ncurrenth = 0; in MatCreate_MFFD()
597 mfctx->maxcurrenth = 0; in MatCreate_MFFD()
598 ((PetscObject)mfctx)->type_name = NULL; in MatCreate_MFFD()
606 mfctx->ops->compute = NULL; in MatCreate_MFFD()
607 mfctx->ops->destroy = NULL; in MatCreate_MFFD()
608 mfctx->ops->view = NULL; in MatCreate_MFFD()
609 mfctx->ops->setfromoptions = NULL; in MatCreate_MFFD()
610 mfctx->hctx = NULL; in MatCreate_MFFD()
612 mfctx->func = NULL; in MatCreate_MFFD()
613 mfctx->funcctx = NULL; in MatCreate_MFFD()
614 mfctx->w = NULL; in MatCreate_MFFD()
615 mfctx->mat = A; in MatCreate_MFFD()
618 PetscCall(MatShellSetContext(A, mfctx)); in MatCreate_MFFD()