Home
last modified time | relevance | path

Searched refs:cDof (Results 1 – 4 of 4) sorted by relevance

/petsc/src/vec/vec/utils/
H A Dvsection.c143 const PetscInt *cDof; in VecSetValuesSection() local
145 PetscCall(PetscSectionGetConstraintIndices(s, point, &cDof)); in VecSetValuesSection()
148 if ((cInd < cDim) && (i == cDof[cInd])) { in VecSetValuesSection()
157 if ((cInd < cDim) && (i == cDof[cInd])) { in VecSetValuesSection()
167 const PetscInt *cDof; in VecSetValuesSection() local
172 PetscCall(PetscSectionGetConstraintIndices(s, point, &cDof)); in VecSetValuesSection()
180 if ((cInd < sDim) && (j == cDof[cInd + cOffset])) { in VecSetValuesSection()
/petsc/src/dm/impls/plex/tests/
H A Dex3.c470 PetscInt cDof; in SetupSection() local
473 PetscCall(PetscSectionGetDof(aSec, c, &cDof)); in SetupSection()
474 if (cDof) { in SetupSection()
476 …PetscCheck(cDof == 1, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Found %" PetscInt_FMT " anchor points: sho… in SetupSection()
483 PetscCall(PetscSectionGetDof(cSec, c, &cDof)); in SetupSection()
490 …scCheck(cDof == aDof, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Point and anchor have different number of … in SetupSection()
491 …Check(cDof % numComp == 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Point dofs not divisible by field com… in SetupSection()
494 … for (j = 0; j < cDof; j++) PetscCall(MatSetValue(cMat, cOff + j, aOff + j, 1., INSERT_VALUES)); in SetupSection()
/petsc/src/dm/impls/plex/
H A Dplextree.c1425 PetscInt cDof, cOff, numCols, r, i; in DMPlexReferenceTreeGetChildrenMatrices() local
1428 PetscCall(PetscSectionGetFieldDof(refConSec, p, f, &cDof)); in DMPlexReferenceTreeGetChildrenMatrices()
1432 PetscCall(PetscSectionGetDof(refConSec, p, &cDof)); in DMPlexReferenceTreeGetChildrenMatrices()
1437 for (r = 0; r < cDof; r++) rows[r] = cOff + r; in DMPlexReferenceTreeGetChildrenMatrices()
1455 PetscCall(PetscMalloc1(cDof * numCols, &refPointFieldMats[p - pRefStart][f])); in DMPlexReferenceTreeGetChildrenMatrices()
1456 … PetscCall(MatGetValues(refCmat, cDof, rows, numCols, cols, refPointFieldMats[p - pRefStart][f])); in DMPlexReferenceTreeGetChildrenMatrices()
1474 for (k = 0; k < cDof; k++) { in DMPlexReferenceTreeGetChildrenMatrices()
1523 PetscInt cDof; in DMPlexReferenceTreeRestoreChildrenMatrices() local
1526 PetscCall(PetscSectionGetFieldDof(refConSec, p, f, &cDof)); in DMPlexReferenceTreeRestoreChildrenMatrices()
1528 PetscCall(PetscSectionGetDof(refConSec, p, &cDof)); in DMPlexReferenceTreeRestoreChildrenMatrices()
[all …]
/petsc/src/vec/is/section/interface/
H A Dsection.c2885 const PetscInt *cDof; in VecIntSetValuesSection_Private() local
2887 PetscCall(PetscSectionGetConstraintIndices(s, point, &cDof)); in VecIntSetValuesSection_Private()
2890 if ((cInd < cDim) && (i == cDof[cInd])) { in VecIntSetValuesSection_Private()
2898 if ((cInd < cDim) && (i == cDof[cInd])) { in VecIntSetValuesSection_Private()
2906 const PetscInt *cDof; in VecIntSetValuesSection_Private() local
2911 PetscCall(PetscSectionGetConstraintIndices(s, point, &cDof)); in VecIntSetValuesSection_Private()
2919 if ((cInd < sDim) && (j == cDof[cInd + cOffset])) { in VecIntSetValuesSection_Private()