Lines Matching refs:ctxcontainer
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()
1533 if (shell->ctxcontainer) PetscCall(PetscContainerSetCtxDestroy(shell->ctxcontainer, f)); in MatShellSetContextDestroy_Shell()
1759 b->ctxcontainer = NULL; in MatCreate_Shell()