Searched refs:ctxcontainer (Results 1 – 4 of 4) sorted by relevance
| /petsc/src/ts/utils/ |
| H A D | dmts.c | 383 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 D | dmsnes.c | 311 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 D | shell.h | 59 PetscContainer ctxcontainer; member
|
| H A D | shell.c | 214 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 …]
|