Lines Matching refs:cooMat

377   if (hA->cooMat) { /* If cooMat is present we need to destroy the column indices */  in MatHYPRE_DestroyCOOMat()
378 PetscCall(MatDestroy(&hA->cooMat)); in MatHYPRE_DestroyCOOMat()
437 PetscCall(MatCreate(comm, &hmat->cooMat)); in MatHYPRE_CreateCOOMat()
438 PetscCall(MatSetType(hmat->cooMat, matType)); in MatHYPRE_CreateCOOMat()
439 PetscCall(MatSetLayouts(hmat->cooMat, rmap, cmap)); in MatHYPRE_CreateCOOMat()
442 PetscCall(MatMPIAIJSetPreallocation(hmat->cooMat, 0, NULL, 0, NULL)); in MatHYPRE_CreateCOOMat()
467 …PetscCheck(hmat->cooMat, PetscObjectComm((PetscObject)mat), PETSC_ERR_PLIB, "HYPRE COO delegate ma… in MatHYPRE_AttachCOOMat()
469 …PetscCheck(hmat->cooMat->preallocated, PetscObjectComm((PetscObject)mat), PETSC_ERR_PLIB, "HYPRE C… in MatHYPRE_AttachCOOMat()
470 PetscCall(PetscObjectSetName((PetscObject)hmat->cooMat, "_internal_COO_mat_for_hypre")); in MatHYPRE_AttachCOOMat()
479 A = (size == 1) ? hmat->cooMat : ((Mat_MPIAIJ *)hmat->cooMat->data)->A; in MatHYPRE_AttachCOOMat()
480 B = (size == 1) ? NULL : ((Mat_MPIAIJ *)hmat->cooMat->data)->B; in MatHYPRE_AttachCOOMat()
663 dH = hA->cooMat;
664 PetscCall(PetscObjectBaseTypeCompare((PetscObject)hA->cooMat, MATMPIAIJ, &ismpiaij));
665 if (ismpiaij) PetscCall(MatMPIAIJGetSeqAIJ(hA->cooMat, &dH, &oH, NULL));
678 hA->cooMat->assembled = PETSC_TRUE;
689 …PetscCheck(hA->cooMat, PetscObjectComm((PetscObject)A), PETSC_ERR_PLIB, "HYPRE COO delegate matrix…
691 dH = hA->cooMat;
692 PetscCall(PetscObjectBaseTypeCompare((PetscObject)hA->cooMat, MATMPIAIJ, &ismpiaij));
693 if (ismpiaij) PetscCall(MatMPIAIJGetSeqAIJ(hA->cooMat, &dH, &oH, NULL));
2319 if (hA->cooMat) {
2323 PetscCall(MatDuplicate(hA->cooMat, op, &hB->cooMat));
2338 PetscCall(MatSetOption(hmat->cooMat, MAT_IGNORE_OFF_PROC_ENTRIES, hmat->donotstash));
2339 PetscCall(MatSetOption(hmat->cooMat, MAT_NO_OFF_PROC_ENTRIES, mat->nooffprocentries));
2343 PetscCall(PetscObjectSetName((PetscObject)hmat->cooMat, "_internal_COO_mat_for_hypre"));
2344 PetscCall(MatSetPreallocationCOO(hmat->cooMat, coo_n, coo_i, coo_j));
2345 hmat->cooMat->assembled = PETSC_TRUE;
2349 …PetscCall(MatHYPRE_CreateFromMat(hmat->cooMat, hmat)); /* Create hmat->ij and preallocate it …
2350 PetscCall(MatHYPRE_IJMatrixCopyIJ(hmat->cooMat, hmat->ij)); /* Copy A's (i,j) to hmat->ij */
2366 …PetscCheck(hmat->cooMat, PetscObjectComm((PetscObject)mat), PETSC_ERR_PLIB, "HYPRE COO delegate ma…
2367 PetscCall(MatSetValuesCOO(hmat->cooMat, v, imode));
2368 PetscCall(MatViewFromOptions(hmat->cooMat, (PetscObject)mat, "-cooMat_view"));