Lines Matching refs:PetscObject

58   *type = ((PetscObject)coarsen)->type_name;  in MatCoarsenGetType()
92 …PetscCheck(coarser->graph->assembled, PetscObjectComm((PetscObject)coarser), PETSC_ERR_ARG_WRONGST… in MatCoarsenApply()
93 …PetscCheck(!coarser->graph->factortype, PetscObjectComm((PetscObject)coarser), PETSC_ERR_ARG_WRONG… in MatCoarsenApply()
160 if (--((PetscObject)*agg)->refct > 0) { in MatCoarsenDestroy()
167 …PetscCall(PetscObjectComposeFunction((PetscObject)*agg, "MatCoarsenSetMaximumIterations_C", NULL)); in MatCoarsenDestroy()
168 PetscCall(PetscObjectComposeFunction((PetscObject)*agg, "MatCoarsenSetThreshold_C", NULL)); in MatCoarsenDestroy()
169 PetscCall(PetscObjectComposeFunction((PetscObject)*agg, "MatCoarsenSetStrengthIndex_C", NULL)); in MatCoarsenDestroy()
204 PetscErrorCode MatCoarsenViewFromOptions(MatCoarsen A, PetscObject obj, const char name[]) in MatCoarsenViewFromOptions()
208 PetscCall(PetscObjectViewFromOptions((PetscObject)A, obj, name)); in MatCoarsenViewFromOptions()
233 if (!viewer) PetscCall(PetscViewerASCIIGetStdout(PetscObjectComm((PetscObject)agg), &viewer)); in MatCoarsenView()
237 PetscCall(PetscObjectTypeCompare((PetscObject)viewer, PETSCVIEWERASCII, &isascii)); in MatCoarsenView()
238 PetscCall(PetscObjectPrintClassNamePrefixType((PetscObject)agg, viewer)); in MatCoarsenView()
273 PetscCall(PetscObjectTypeCompare((PetscObject)coarser, type, &match)); in MatCoarsenSetType()
281 …PetscCheck(r, PetscObjectComm((PetscObject)coarser), PETSC_ERR_ARG_UNKNOWN_TYPE, "Unknown coarsen … in MatCoarsenSetType()
284 PetscCall(PetscFree(((PetscObject)coarser)->type_name)); in MatCoarsenSetType()
285 PetscCall(PetscStrallocpy(type, &((PetscObject)coarser)->type_name)); in MatCoarsenSetType()
335 …PetscCheck(coarser->agg_lists, PetscObjectComm((PetscObject)coarser), PETSC_ERR_ARG_WRONGSTATE, "N… in MatCoarsenGetData()
370 PetscObjectOptionsBegin((PetscObject)coarser); in MatCoarsenSetFromOptions()
371 if (!((PetscObject)coarser)->type_name) { in MatCoarsenSetFromOptions()
374 def = ((PetscObject)coarser)->type_name; in MatCoarsenSetFromOptions()
386 if (!((PetscObject)coarser)->type_name) PetscCall(MatCoarsenSetType(coarser, def)); in MatCoarsenSetFromOptions()
528 …PetscCall(PetscObjectComposeFunction((PetscObject)agg, "MatCoarsenSetMaximumIterations_C", MatCoar… in MatCoarsenCreate()
529 …PetscCall(PetscObjectComposeFunction((PetscObject)agg, "MatCoarsenSetThreshold_C", MatCoarsenSetTh… in MatCoarsenCreate()
530 …PetscCall(PetscObjectComposeFunction((PetscObject)agg, "MatCoarsenSetStrengthIndex_C", MatCoarsenS… in MatCoarsenCreate()