Lines Matching refs:PetscObject

68 …etscCall(PetscInfo(C, "for A %s, P %s is used\n", ((PetscObject)product->A)->type_name, ((PetscObj…  in MatProductSymbolic_PtAP_Unsafe()
117 …etscCall(PetscInfo(C, "for A %s, R %s is used\n", ((PetscObject)product->A)->type_name, ((PetscObj… in MatProductSymbolic_RARt_Unsafe()
163 …r A %s, B %s, C %s is used\n", ((PetscObject)product->A)->type_name, ((PetscObject)product->B)->ty… in MatProductSymbolic_ABC_Unsafe()
203 …SETERRQ(PetscObjectComm((PetscObject)mat), PETSC_ERR_SUP, "ProductType %s is not supported", MatPr… in MatProductSymbolic_Unsafe()
240 PetscCall(PetscObjectReference((PetscObject)A)); in MatProductReplaceMats()
241 PetscCall(PetscObjectTypeCompare((PetscObject)product->A, ((PetscObject)A)->type_name, &flgA)); in MatProductReplaceMats()
252 PetscCall(PetscObjectReference((PetscObject)B)); in MatProductReplaceMats()
253 PetscCall(PetscObjectTypeCompare((PetscObject)product->B, ((PetscObject)B)->type_name, &flgB)); in MatProductReplaceMats()
264 PetscCall(PetscObjectReference((PetscObject)C)); in MatProductReplaceMats()
265 PetscCall(PetscObjectTypeCompare((PetscObject)product->C, ((PetscObject)C)->type_name, &flgC)); in MatProductReplaceMats()
303PetscObject)C), PETSC_ERR_SUP, "MatProductNumeric type %s not supported for %s and %s matrices", M… in MatProductNumeric_X_Dense()
313 PetscCall(PetscStrallocpy(((PetscObject)B)->type_name, &Btype)); in MatProductNumeric_X_Dense()
314 PetscCall(PetscStrallocpy(((PetscObject)C)->type_name, &Ctype)); in MatProductNumeric_X_Dense()
375PetscObject)C), PETSC_ERR_SUP, "MatProductSymbolic type %s not supported for %s and %s matrices", … in MatProductSymbolic_X_Dense()
377 PetscCall(PetscObjectBaseTypeCompareAny((PetscObject)C, &isdense, MATSEQDENSE, MATMPIDENSE, "")); in MatProductSymbolic_X_Dense()
379 PetscCall(MatSetType(C, ((PetscObject)B)->type_name)); in MatProductSymbolic_X_Dense()
405 PetscCheck(A, PetscObjectComm((PetscObject)mat), PETSC_ERR_PLIB, "Missing A mat"); in MatProductSetFromOptions_Private()
406 PetscCheck(B, PetscObjectComm((PetscObject)mat), PETSC_ERR_PLIB, "Missing B mat"); in MatProductSetFromOptions_Private()
407 …PetscCheck(product->type != MATPRODUCT_ABC || C, PetscObjectComm((PetscObject)mat), PETSC_ERR_PLIB… in MatProductSetFromOptions_Private()
427 …PetscCheck(An == Bm, PetscObjectComm((PetscObject)mat), PETSC_ERR_ARG_SIZ, "Matrix dimensions of A… in MatProductSetFromOptions_Private()
429 …PetscCheck(!Cm || Cm == Bn, PetscObjectComm((PetscObject)mat), PETSC_ERR_ARG_SIZ, "Matrix dimensio… in MatProductSetFromOptions_Private()
436 …n", MatProductTypes[product->type], ((PetscObject)A)->type_name, bname, ((PetscObject)B)->type_nam… in MatProductSetFromOptions_Private()
438 …or A %s, %s %s\n", MatProductTypes[product->type], ((PetscObject)A)->type_name, bname, ((PetscObje… in MatProductSetFromOptions_Private()
448 PetscCall(PetscStrlcat(mtypes, ((PetscObject)A)->type_name, sizeof(mtypes))); in MatProductSetFromOptions_Private()
450 PetscCall(PetscStrlcat(mtypes, ((PetscObject)B)->type_name, sizeof(mtypes))); in MatProductSetFromOptions_Private()
453 PetscCall(PetscStrlcat(mtypes, ((PetscObject)C)->type_name, sizeof(mtypes))); in MatProductSetFromOptions_Private()
461 PetscCall(PetscObjectQueryFunction((PetscObject)A, mtypes, &f)); in MatProductSetFromOptions_Private()
464 PetscCall(PetscObjectQueryFunction((PetscObject)B, mtypes, &f)); in MatProductSetFromOptions_Private()
468 PetscCall(PetscObjectQueryFunction((PetscObject)C, mtypes, &f)); in MatProductSetFromOptions_Private()
477 PetscCall(PetscObjectQueryFunction((PetscObject)A, mtypes, &f)); in MatProductSetFromOptions_Private()
480 PetscCall(PetscObjectQueryFunction((PetscObject)B, mtypes, &f)); in MatProductSetFromOptions_Private()
484 PetscCall(PetscObjectQueryFunction((PetscObject)C, mtypes, &f)); in MatProductSetFromOptions_Private()
497 … PetscCall(PetscObjectBaseTypeCompareAny((PetscObject)B, &isdense, MATSEQDENSE, MATMPIDENSE, "")); in MatProductSetFromOptions_Private()
543 …PetscCheck(!mat->product->data, PetscObjectComm((PetscObject)mat), PETSC_ERR_ORDER, "Cannot call M… in MatProductSetFromOptions()
545 PetscObjectOptionsBegin((PetscObject)mat); in MatProductSetFromOptions()
550 …PetscCheck(mat->product, PetscObjectComm((PetscObject)mat), PETSC_ERR_PLIB, "Missing product after… in MatProductSetFromOptions()
575 if (!viewer) PetscCall(PetscViewerASCIIGetStdout(PetscObjectComm((PetscObject)mat), &viewer)); in MatProductView()
686 …SETERRQ(PetscObjectComm((PetscObject)mat), PETSC_ERR_SUP, "ProductType %s is not supported", MatPr… in MatProductNumeric()
697 …ypes[mat->product->type], ((PetscObject)mat->product->A)->type_name, ((PetscObject)mat->product->B… in MatProductNumeric()
699 …s, B %s", MatProductTypes[mat->product->type], ((PetscObject)mat->product->A)->type_name, ((PetscO… in MatProductNumeric()
701 …SETERRQ(PetscObjectComm((PetscObject)mat), PETSC_ERR_PLIB, "Unspecified numeric phase for product … in MatProductNumeric()
703 …PetscCheck(mat->product, PetscObjectComm((PetscObject)mat), PETSC_ERR_PLIB, "Missing struct after … in MatProductNumeric()
706 PetscCall(PetscObjectStateIncrease((PetscObject)mat)); in MatProductNumeric()
784 …PetscCheck(!mat->product->data, PetscObjectComm((PetscObject)mat), PETSC_ERR_ORDER, "Cannot run sy… in MatProductSymbolic()
805 …SETERRQ(PetscObjectComm((PetscObject)mat), PETSC_ERR_SUP, "ProductType %s is not supported", MatPr… in MatProductSymbolic()
817 …ypes[mat->product->type], ((PetscObject)mat->product->A)->type_name, ((PetscObject)mat->product->B… in MatProductSymbolic()
819 …s, B %s", MatProductTypes[mat->product->type], ((PetscObject)mat->product->A)->type_name, ((PetscO… in MatProductSymbolic()
821 …PetscCheck(mat->product->setfromoptionscalled, PetscObjectComm((PetscObject)mat), PETSC_ERR_PLIB, … in MatProductSymbolic()
822 …PetscCheck(!missing, PetscObjectComm((PetscObject)mat), PETSC_ERR_SUP, "Unspecified symbolic phase… in MatProductSymbolic()
823 …PetscCheck(mat->product, PetscObjectComm((PetscObject)mat), PETSC_ERR_PLIB, "Missing struct after … in MatProductSymbolic()
855 …SETERRQ(PetscObjectComm((PetscObject)mat), PETSC_ERR_PLIB, "Not for ProductType %s", MatProductTyp… in MatProductSymbolic()
1025 …PetscCheck(!D->product, PetscObjectComm((PetscObject)D), PETSC_ERR_PLIB, "Product already present"… in MatProductCreate_Private()
1041 PetscCall(PetscObjectReference((PetscObject)A)); in MatProductCreate_Private()
1042 PetscCall(PetscObjectReference((PetscObject)B)); in MatProductCreate_Private()
1043 PetscCall(PetscObjectReference((PetscObject)C)); in MatProductCreate_Private()
1076 …PetscCheck(A->assembled, PetscObjectComm((PetscObject)A), PETSC_ERR_ARG_WRONGSTATE, "Not for unass… in MatProductCreateWithMat()
1077 …PetscCheck(!A->factortype, PetscObjectComm((PetscObject)A), PETSC_ERR_ARG_WRONGSTATE, "Not for fac… in MatProductCreateWithMat()
1082 …PetscCheck(B->assembled, PetscObjectComm((PetscObject)B), PETSC_ERR_ARG_WRONGSTATE, "Not for unass… in MatProductCreateWithMat()
1083 …PetscCheck(!B->factortype, PetscObjectComm((PetscObject)B), PETSC_ERR_ARG_WRONGSTATE, "Not for fac… in MatProductCreateWithMat()
1089 …PetscCheck(C->assembled, PetscObjectComm((PetscObject)C), PETSC_ERR_ARG_WRONGSTATE, "Not for unass… in MatProductCreateWithMat()
1090 …PetscCheck(!C->factortype, PetscObjectComm((PetscObject)C), PETSC_ERR_ARG_WRONGSTATE, "Not for fac… in MatProductCreateWithMat()
1096 …PetscCheck(D->assembled, PetscObjectComm((PetscObject)D), PETSC_ERR_ARG_WRONGSTATE, "Not for unass… in MatProductCreateWithMat()
1097 …PetscCheck(!D->factortype, PetscObjectComm((PetscObject)D), PETSC_ERR_ARG_WRONGSTATE, "Not for fac… in MatProductCreateWithMat()
1160 …PetscCheck(!A->factortype, PetscObjectComm((PetscObject)A), PETSC_ERR_ARG_WRONGSTATE, "Not for fac… in MatProductCreate()
1161 …PetscCheck(!B->factortype, PetscObjectComm((PetscObject)B), PETSC_ERR_ARG_WRONGSTATE, "Not for fac… in MatProductCreate()
1166 …PetscCheck(!C->factortype, PetscObjectComm((PetscObject)C), PETSC_ERR_ARG_WRONGSTATE, "Not for fac… in MatProductCreate()
1170 PetscCall(MatCreate(PetscObjectComm((PetscObject)A), D)); in MatProductCreate()
1205 …PetscCheck(mat->product->data, PetscObjectComm((PetscObject)mat), PETSC_ERR_PLIB, "Product data em… in MatProductNumeric_ABC_Basic()
1207 …PetscCheck(mmabc->BC->ops->productnumeric, PetscObjectComm((PetscObject)mat), PETSC_ERR_PLIB, "Mis… in MatProductNumeric_ABC_Basic()
1230 …PetscCheck(!mat->product->data, PetscObjectComm((PetscObject)mat), PETSC_ERR_PLIB, "Product data n… in MatProductSymbolic_ABC_Basic()
1261 …SETERRQ(PetscObjectComm((PetscObject)mat), PETSC_ERR_PLIB, "Not for ProductType %s", MatProductTyp… in MatProductSymbolic_ABC_Basic()
1271PetscObject)mat), PETSC_ERR_SUP, "Symbolic ProductType %s not supported with %s and %s", MatProduc… in MatProductSymbolic_ABC_Basic()
1283PetscObject)mat), PETSC_ERR_SUP, "Symbolic ProductType %s not supported with %s and %s", MatProduc… in MatProductSymbolic_ABC_Basic()