Searched refs:submatj (Results 1 – 3 of 3) sorted by relevance
6 Mat_SubSppt *submatj = (Mat_SubSppt *)C->data; in MatDestroySubMatrix_Dummy() local9 PetscCall(submatj->destroy(C)); in MatDestroySubMatrix_Dummy()10 PetscCall(MatDestroySubMatrix_Private(submatj)); in MatDestroySubMatrix_Dummy()
2634 PetscErrorCode MatDestroySubMatrix_Private(Mat_SubSppt *submatj) in MatDestroySubMatrix_Private() argument2639 if (!submatj->id) { /* delete data that are linked only to submats[id=0] */ in MatDestroySubMatrix_Private()2640 PetscCall(PetscFree4(submatj->sbuf1, submatj->ptr, submatj->tmp, submatj->ctr)); in MatDestroySubMatrix_Private()2642 for (i = 0; i < submatj->nrqr; ++i) PetscCall(PetscFree(submatj->sbuf2[i])); in MatDestroySubMatrix_Private()2643 PetscCall(PetscFree3(submatj->sbuf2, submatj->req_size, submatj->req_source1)); in MatDestroySubMatrix_Private()2645 if (submatj->rbuf1) { in MatDestroySubMatrix_Private()2646 PetscCall(PetscFree(submatj->rbuf1[0])); in MatDestroySubMatrix_Private()2647 PetscCall(PetscFree(submatj->rbuf1)); in MatDestroySubMatrix_Private()2650 for (i = 0; i < submatj->nrqs; ++i) PetscCall(PetscFree(submatj->rbuf3[i])); in MatDestroySubMatrix_Private()2651 PetscCall(PetscFree3(submatj->req_source2, submatj->rbuf2, submatj->rbuf3)); in MatDestroySubMatrix_Private()[all …]
180 Mat_SubSppt *submatj = c->submatis1; in MatDestroySubMatrix_SeqBAIJ() local183 PetscCall((*submatj->destroy)(C)); in MatDestroySubMatrix_SeqBAIJ()184 PetscCall(MatDestroySubMatrix_Private(submatj)); in MatDestroySubMatrix_SeqBAIJ()194 Mat_SubSppt *submatj; in MatDestroySubMatrices_SeqBAIJ() local200 submatj = c->submatis1; in MatDestroySubMatrices_SeqBAIJ()201 if (submatj) { in MatDestroySubMatrices_SeqBAIJ()204 PetscCall((*submatj->destroy)(C)); in MatDestroySubMatrices_SeqBAIJ()205 PetscCall(MatDestroySubMatrix_Private(submatj)); in MatDestroySubMatrices_SeqBAIJ()