Searched refs:funcctx (Results 1 – 4 of 4) sorted by relevance
| /petsc/src/mat/impls/mffd/ |
| H A D | mffd.c | 357 if (ctx->ncurrenth == 1 && ctx->current_f_allocated) PetscCall((*ctx->func)(ctx->funcctx, U, F)); in MatMult_MFFD() 358 PetscCall((*ctx->func)(ctx->funcctx, w, y)); in MatMult_MFFD() 399 PetscCall((*ctx->func)(ctx->funcctx, U, a)); in MatGetDiagonal_MFFD() 400 if (ctx->funcisetbase) PetscCall((*ctx->funcisetbase)(ctx->funcctx, U)); in MatGetDiagonal_MFFD() 415 PetscCall((*ctx->funci)(ctx->funcctx, i, w, &v)); in MatGetDiagonal_MFFD() 532 static PetscErrorCode MatMFFDSetFunction_MFFD(Mat mat, MatMFFDFn *func, void *funcctx) in MatMFFDSetFunction_MFFD() argument 539 ctx->funcctx = funcctx; in MatMFFDSetFunction_MFFD() 613 mfctx->funcctx = NULL; in MatCreate_MFFD() 763 PetscErrorCode MatMFFDSetFunction(Mat mat, MatMFFDFn *func, void *funcctx) in MatMFFDSetFunction() argument 767 PetscTryMethod(mat, "MatMFFDSetFunction_C", (Mat, MatMFFDFn *, void *), (mat, func, funcctx)); in MatMFFDSetFunction()
|
| H A D | mffdimpl.h | 43 void *funcctx; /* the context for the function */ member
|
| /petsc/src/dm/impls/da/ |
| H A D | da2.c | 162 PetscCall((*ctx->func)(0, U, a, ctx->funcctx)); in DMDAGetDiagonal_MFFD() 163 PetscCall((*ctx->funcisetbase)(U, ctx->funcctx)); in DMDAGetDiagonal_MFFD() 176 PetscCall((*ctx->funci)(i, w, &v, ctx->funcctx)); in DMDAGetDiagonal_MFFD()
|
| /petsc/src/snes/interface/ |
| H A D | snes.c | 3115 void *funcctx; in SNESComputeJacobian() local 3130 PetscCall(SNESGetFunction(snes, NULL, &func, &funcctx)); in SNESComputeJacobian() 3131 PetscCall(MatFDColoringSetFunction(matfdcoloring, (MatFDColoringFn *)func, funcctx)); in SNESComputeJacobian() 3352 void *funcctx; in SNESSetUp() local 3393 PetscCall(SNESGetFunction(snes, &f, &func, &funcctx)); in SNESSetUp() 3395 PetscCall(SNESSetFunction(snes->npc, fpc, func, funcctx)); in SNESSetUp()
|