Lines Matching refs:cdof
128 PetscInt dof, cdof, fcdof = 0; in PetscSectionCopy_Internal() local
133 if (force_constrained) cdof = dof; in PetscSectionCopy_Internal()
134 else PetscCall(PetscSectionGetConstraintDof(section, p, &cdof)); in PetscSectionCopy_Internal()
135 if (cdof) PetscCall(PetscSectionSetConstraintDof(newSection, p, cdof)); in PetscSectionCopy_Internal()
139 if (cdof) { in PetscSectionCopy_Internal()
148 PetscInt off, cdof, fcdof = 0; in PetscSectionCopy_Internal() local
155 PetscCall(PetscSectionGetConstraintDof(newSection, p, &cdof)); in PetscSectionCopy_Internal()
156 if (cdof) { in PetscSectionCopy_Internal()
1444 const PetscInt cdof = s->bc ? s->bc->atlasDof[p] : 0; in PetscSectionGetConstrainedStorageSize() local
1445 n += s->atlasDof[p] > 0 ? s->atlasDof[p] - cdof : 0; in PetscSectionGetConstrainedStorageSize()
1480 PetscInt pStart, pEnd, p, dof, cdof, off, globalOff = 0, nroots, nlocal, maxleaf; in PetscSectionCreateGlobalSection() local
1512 PetscCall(PetscSectionGetConstraintDof(s, p, &cdof)); in PetscSectionCreateGlobalSection()
1513 if (!includeConstraints && cdof > 0) PetscCall(PetscSectionSetConstraintDof(gs, p, cdof)); in PetscSectionCreateGlobalSection()
1535 cdof = (!includeConstraints && s->bc) ? s->bc->atlasDof[q] : 0; in PetscSectionCreateGlobalSection()
1537 off += gs->atlasDof[q] > 0 ? gs->atlasDof[q] - cdof : 0; in PetscSectionCreateGlobalSection()
1571 PetscCall(PetscSectionGetFieldConstraintDof(s, p, f, &cdof)); in PetscSectionCreateGlobalSection()
1572 … if (!includeConstraints && cdof > 0) PetscCall(PetscSectionSetFieldConstraintDof(gs, p, f, cdof)); in PetscSectionCreateGlobalSection()
1576 PetscCall(PetscSectionGetFieldConstraintDof(gs, p, f, &cdof)); in PetscSectionCreateGlobalSection()
1577 foff = off < 0 ? foff - (dof - cdof) : foff + (dof - cdof); in PetscSectionCreateGlobalSection()
1625 PetscInt pStart, pEnd, p, e, dof, cdof, globalOff = 0, nroots; in PetscSectionCreateGlobalSectionCensored() local
1656 PetscCall(PetscSectionGetConstraintDof(s, p, &cdof)); in PetscSectionCreateGlobalSectionCensored()
1657 … if (!includeConstraints && cdof > 0) PetscCall(PetscSectionSetConstraintDof(*gsection, p, cdof)); in PetscSectionCreateGlobalSectionCensored()
1675 cdof = (!includeConstraints && s->bc) ? s->bc->atlasDof[q] : 0; in PetscSectionCreateGlobalSectionCensored()
1677 off += (*gsection)->atlasDof[q] > 0 ? (*gsection)->atlasDof[q] - cdof : 0; in PetscSectionCreateGlobalSectionCensored()
1791 PetscInt dof, cdof; in PetscSectionGetValueLayout() local
1794 PetscCall(PetscSectionGetConstraintDof(s, p, &cdof)); in PetscSectionGetValueLayout()
1795 if (dof - cdof > 0) localSize += dof - cdof; in PetscSectionGetValueLayout()
2059 PetscInt dof = 0, cdof = 0, fdof = 0, cfdof = 0; in PetscSectionCreateSubsection() local
2067 cdof += cfdof; in PetscSectionCreateSubsection()
2070 if (cdof) PetscCall(PetscSectionSetConstraintDof(*subs, p, cdof)); in PetscSectionCreateSubsection()
2071 maxCdof = PetscMax(cdof, maxCdof); in PetscSectionCreateSubsection()
2087 PetscInt cdof; in PetscSectionCreateSubsection() local
2089 PetscCall(PetscSectionGetConstraintDof(*subs, p, &cdof)); in PetscSectionCreateSubsection()
2090 if (cdof) { in PetscSectionCreateSubsection()
2160 PetscInt dof, cdof, cfdof; in PetscSectionCreateComponentSubsection() local
2165 PetscCall(PetscSectionGetConstraintDof(s, p, &cdof)); in PetscSectionCreateComponentSubsection()
2166 …PetscCheck(!cdof && !cfdof, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Component selection does not wo… in PetscSectionCreateComponentSubsection()
2233 PetscInt dof = 0, cdof = 0; in PetscSectionCreateSupersection() local
2248 cdof += cfdof; in PetscSectionCreateSupersection()
2252 if (cdof) PetscCall(PetscSectionSetConstraintDof(*supers, p, cdof)); in PetscSectionCreateSupersection()
2253 maxCdof = PetscMax(cdof, maxCdof); in PetscSectionCreateSupersection()
2261 PetscInt cdof; in PetscSectionCreateSupersection() local
2263 PetscCall(PetscSectionGetConstraintDof(*supers, p, &cdof)); in PetscSectionCreateSupersection()
2264 if (cdof) { in PetscSectionCreateSupersection()
2344 PetscInt dof, cdof, fdof = 0, cfdof = 0; in PetscSectionCreateSubplexSection_Private() local
2358 PetscCall(PetscSectionGetConstraintDof(s, p, &cdof)); in PetscSectionCreateSubplexSection_Private()
2359 if (cdof) PetscCall(PetscSectionSetConstraintDof(*subs, subp, cdof)); in PetscSectionCreateSubplexSection_Private()
2379 PetscInt cdof; in PetscSectionCreateSubplexSection_Private() local
2381 PetscCall(PetscSectionGetConstraintDof(*subs, subp, &cdof)); in PetscSectionCreateSubplexSection_Private()
2382 if (cdof) { in PetscSectionCreateSubplexSection_Private()
3005 const PetscInt cdof = s->bc->atlasDof[point]; in PetscSectionSetConstraintIndices() local
3009 …for (d = 0; d < cdof; ++d) PetscCheck(indices[d] < dof, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE,… in PetscSectionSetConstraintIndices()
3122 PetscInt dof, cdof; in PetscSectionPermute() local
3126 PetscCall(PetscSectionGetConstraintDof(s, p, &cdof)); in PetscSectionPermute()
3127 if (cdof) PetscCall(PetscSectionSetConstraintDof(sNew, perm[p], cdof)); in PetscSectionPermute()
3131 PetscCall(PetscSectionGetFieldConstraintDof(s, p, f, &cdof)); in PetscSectionPermute()
3132 if (cdof) PetscCall(PetscSectionSetFieldConstraintDof(sNew, perm[p], f, cdof)); in PetscSectionPermute()
3138 PetscInt cdof; in PetscSectionPermute() local
3140 PetscCall(PetscSectionGetConstraintDof(s, p, &cdof)); in PetscSectionPermute()
3141 if (cdof) { in PetscSectionPermute()
3146 PetscCall(PetscSectionGetFieldConstraintDof(s, p, f, &cdof)); in PetscSectionPermute()
3147 if (cdof) { in PetscSectionPermute()