Lines Matching refs:cMat
7840 Mat cMat;
7949 PetscCall(DMGetDefaultConstraints(dm, &cSec, &cMat, NULL));
8032 PetscCall(MatGetValues(cMat, bSecDof, &indices[o], aDof, &newIndices[oNew], tmpMat));
10713 static PetscErrorCode DMPlexCreateConstraintMatrix_Anchors(DM dm, PetscSection section, PetscSection cSec, Mat *cMat)
10727 PetscCall(MatCreate(PETSC_COMM_SELF, cMat));
10728 PetscCall(MatSetSizes(*cMat, m, n, m, n));
10736 PetscCall(MatSetType(*cMat, mtype));
10818 PetscCall(MatSeqAIJSetPreallocationCSR(*cMat, i, j, NULL));
10829 Mat cMat;
10839 PetscCall(DMPlexCreateConstraintMatrix_Anchors(dm, section, cSec, &cMat));
10841 if (Nf && plex->computeanchormatrix) PetscCall((*plex->computeanchormatrix)(dm, section, cSec, cMat));
10842 PetscCall(DMSetDefaultConstraints(dm, cSec, cMat, NULL));
10844 PetscCall(MatDestroy(&cMat));