Lines Matching refs:redund

1404   Mat_Redundant *redund = *redundant;  in MatDestroy_Redundant()  local
1407 if (redund) { in MatDestroy_Redundant()
1408 if (redund->matseq) { /* via MatCreateSubMatrices() */ in MatDestroy_Redundant()
1409 PetscCall(ISDestroy(&redund->isrow)); in MatDestroy_Redundant()
1410 PetscCall(ISDestroy(&redund->iscol)); in MatDestroy_Redundant()
1411 PetscCall(MatDestroySubMatrices(1, &redund->matseq)); in MatDestroy_Redundant()
1413 PetscCall(PetscFree2(redund->send_rank, redund->recv_rank)); in MatDestroy_Redundant()
1414 PetscCall(PetscFree(redund->sbuf_j)); in MatDestroy_Redundant()
1415 PetscCall(PetscFree(redund->sbuf_a)); in MatDestroy_Redundant()
1416 for (PetscInt i = 0; i < redund->nrecvs; i++) { in MatDestroy_Redundant()
1417 PetscCall(PetscFree(redund->rbuf_j[i])); in MatDestroy_Redundant()
1418 PetscCall(PetscFree(redund->rbuf_a[i])); in MatDestroy_Redundant()
1420 PetscCall(PetscFree4(redund->sbuf_nz, redund->rbuf_nz, redund->rbuf_j, redund->rbuf_a)); in MatDestroy_Redundant()
1423 if (redund->subcomm) PetscCall(PetscCommDestroy(&redund->subcomm)); in MatDestroy_Redundant()
1424 PetscCall(PetscFree(redund)); in MatDestroy_Redundant()
10477 Mat_Redundant *redund = NULL; in MatCreateRedundantMatrix() local
10542 redund = (*matredundant)->redundant; in MatCreateRedundantMatrix()
10543 isrow = redund->isrow; in MatCreateRedundantMatrix()
10544 iscol = redund->iscol; in MatCreateRedundantMatrix()
10545 matseq = redund->matseq; in MatCreateRedundantMatrix()
10554 PetscCall(PetscNew(&redund)); in MatCreateRedundantMatrix()
10555 (*matredundant)->redundant = redund; in MatCreateRedundantMatrix()
10556 redund->isrow = isrow; in MatCreateRedundantMatrix()
10557 redund->iscol = iscol; in MatCreateRedundantMatrix()
10558 redund->matseq = matseq; in MatCreateRedundantMatrix()
10560 redund->subcomm = subcomm; in MatCreateRedundantMatrix()
10562 redund->subcomm = MPI_COMM_NULL; in MatCreateRedundantMatrix()