Home
last modified time | relevance | path

Searched refs:ctxcontainer (Results 1 – 4 of 4) sorted by relevance

/petsc/src/ts/utils/
H A Ddmts.c383 PetscContainer ctxcontainer; in DMTSSetIFunction() local
384 PetscCall(PetscContainerCreate(PetscObjectComm((PetscObject)tsdm), &ctxcontainer)); in DMTSSetIFunction()
385 PetscCall(PetscContainerSetPointer(ctxcontainer, ctx)); in DMTSSetIFunction()
386 PetscCall(PetscObjectCompose((PetscObject)tsdm, "ifunction ctx", (PetscObject)ctxcontainer)); in DMTSSetIFunction()
387 tsdm->ifunctionctxcontainer = ctxcontainer; in DMTSSetIFunction()
388 PetscCall(PetscContainerDestroy(&ctxcontainer)); in DMTSSetIFunction()
490 PetscContainer ctxcontainer; in DMTSSetI2Function() local
491 PetscCall(PetscContainerCreate(PetscObjectComm((PetscObject)tsdm), &ctxcontainer)); in DMTSSetI2Function()
492 PetscCall(PetscContainerSetPointer(ctxcontainer, ctx)); in DMTSSetI2Function()
493 PetscCall(PetscObjectCompose((PetscObject)tsdm, "i2function ctx", (PetscObject)ctxcontainer)); in DMTSSetI2Function()
[all …]
/petsc/src/snes/utils/
H A Ddmsnes.c311 PetscContainer ctxcontainer; in DMSNESSetFunction() local
312 PetscCall(PetscContainerCreate(PetscObjectComm((PetscObject)sdm), &ctxcontainer)); in DMSNESSetFunction()
313 PetscCall(PetscContainerSetPointer(ctxcontainer, ctx)); in DMSNESSetFunction()
314 PetscCall(PetscObjectCompose((PetscObject)sdm, "function ctx", (PetscObject)ctxcontainer)); in DMSNESSetFunction()
315 sdm->functionctxcontainer = ctxcontainer; in DMSNESSetFunction()
316 PetscCall(PetscContainerDestroy(&ctxcontainer)); in DMSNESSetFunction()
579 PetscContainer ctxcontainer; in DMSNESSetJacobian() local
580 PetscCall(PetscContainerCreate(PetscObjectComm((PetscObject)sdm), &ctxcontainer)); in DMSNESSetJacobian()
581 PetscCall(PetscContainerSetPointer(ctxcontainer, ctx)); in DMSNESSetJacobian()
582 PetscCall(PetscObjectCompose((PetscObject)sdm, "jacobian ctx", (PetscObject)ctxcontainer)); in DMSNESSetJacobian()
[all …]
/petsc/src/mat/impls/shell/
H A Dshell.h59 PetscContainer ctxcontainer; member
H A Dshell.c214 if (shell->ctxcontainer) PetscCall(PetscContainerGetPointer(shell->ctxcontainer, ctx)); in MatShellGetContext_Shell()
977 ((Mat_Shell *)(*M)->data)->ctxcontainer = ((Mat_Shell *)mat->data)->ctxcontainer; in MatDuplicate_Shell()
978 …ectCompose((PetscObject)*M, "MatShell ctx", (PetscObject)((Mat_Shell *)(*M)->data)->ctxcontainer)); in MatDuplicate_Shell()
1515 PetscContainer ctxcontainer; in MatShellSetContext_Shell() local
1516 PetscCall(PetscContainerCreate(PetscObjectComm((PetscObject)mat), &ctxcontainer)); in MatShellSetContext_Shell()
1517 PetscCall(PetscContainerSetPointer(ctxcontainer, ctx)); in MatShellSetContext_Shell()
1518 PetscCall(PetscObjectCompose((PetscObject)mat, "MatShell ctx", (PetscObject)ctxcontainer)); in MatShellSetContext_Shell()
1519 shell->ctxcontainer = ctxcontainer; in MatShellSetContext_Shell()
1520 PetscCall(PetscContainerDestroy(&ctxcontainer)); in MatShellSetContext_Shell()
1523 shell->ctxcontainer = NULL; in MatShellSetContext_Shell()
[all …]