Home
last modified time | relevance | path

Searched refs:maxDof (Results 1 – 11 of 11) sorted by relevance

/petsc/src/snes/utils/libceed/
H A Ddmplexsnesceed.c32 PetscInt pStart, pEnd, p, maxDof; in DMPlexSNESComputeResidualCEED() local
39 PetscCall(PetscSectionGetMaxDof(section, &maxDof)); in DMPlexSNESComputeResidualCEED()
40 PetscCall(PetscCalloc1(maxDof, &zeroes)); in DMPlexSNESComputeResidualCEED()
/petsc/src/dm/impls/plex/
H A Dplexsection.c274 PetscInt Nf, cdof, maxDof = 0, pStart, pEnd, p, bc, f, d; in DMPlexCreateSectionBCIndicesField() local
283 maxDof = PetscMax(maxDof, cdof); in DMPlexCreateSectionBCIndicesField()
285 PetscCall(PetscMalloc1(maxDof, &indices)); in DMPlexCreateSectionBCIndicesField()
286 for (d = 0; d < maxDof; ++d) indices[d] = -1; in DMPlexCreateSectionBCIndicesField()
339 for (d = 0; d < maxDof; ++d) indices[d] = d; in DMPlexCreateSectionBCIndicesField()
359 PetscInt Nf, maxDof, pStart, pEnd, p, f, d; in DMPlexCreateSectionBCIndices() local
363 PetscCall(PetscSectionGetMaxDof(section, &maxDof)); in DMPlexCreateSectionBCIndices()
365 PetscCall(PetscMalloc1(maxDof, &indices)); in DMPlexCreateSectionBCIndices()
366 for (d = 0; d < maxDof; ++d) indices[d] = -1; in DMPlexCreateSectionBCIndices()
H A Dplextree.c1167 PetscInt fSize, maxDof; in DMPlexComputeAnchorMatrix_Tree_Direct() local
1200 for (i = 0, maxDof = 0; i <= spdim; i++) maxDof = PetscMax(maxDof, numDof[i]); in DMPlexComputeAnchorMatrix_Tree_Direct()
1219 …ef, spdim * nPoints, &pointsReal, nPoints * fSize * Nc, &work, maxDof, &workIndRow, maxDof, &workI… in DMPlexComputeAnchorMatrix_Tree_Direct()
1220 PetscCall(PetscMalloc1(maxDof * maxDof, &scwork)); in DMPlexComputeAnchorMatrix_Tree_Direct()
1391 …PetscInt numFields, maxFields, f, pRefStart, pRefEnd, p, *rows, *cols, maxDof, maxAnDof… in DMPlexReferenceTreeGetChildrenMatrices() local
1410 PetscCall(PetscSectionGetMaxDof(refConSec, &maxDof)); in DMPlexReferenceTreeGetChildrenMatrices()
1412 PetscCall(PetscMalloc1(maxDof, &rows)); in DMPlexReferenceTreeGetChildrenMatrices()
1413 PetscCall(PetscMalloc1(maxDof * maxAnDof, &cols)); in DMPlexReferenceTreeGetChildrenMatrices()
1546 …PetscInt numFields, maxFields, f, pRefStart, pRefEnd, p, maxDof, maxAnDof, *perm, *iperm, p… in DMPlexComputeAnchorMatrix_Tree_FromReference() local
1567 PetscCall(PetscSectionGetMaxDof(refConSec, &maxDof)); in DMPlexComputeAnchorMatrix_Tree_FromReference()
[all …]
H A Dplexfem.c5046 PetscInt pStart, pEnd, maxDof; in DMPlexComputeBdResidualSingleByKey() local
5053 PetscCall(PetscSectionGetMaxDof(s, &maxDof)); in DMPlexComputeBdResidualSingleByKey()
5054 PetscCall(PetscCalloc1(maxDof, &zeroes)); in DMPlexComputeBdResidualSingleByKey()
5515 PetscInt pStart, pEnd, p, maxDof; in DMPlexComputeResidualByKey() local
5521 PetscCall(PetscSectionGetMaxDof(section, &maxDof)); in DMPlexComputeResidualByKey()
5522 PetscCall(PetscCalloc1(maxDof, &zeroes)); in DMPlexComputeResidualByKey()
5861 PetscInt pStart, pEnd, p, maxDof; in DMPlexComputeResidualHybridByKey() local
5867 PetscCall(PetscSectionGetMaxDof(section, &maxDof)); in DMPlexComputeResidualHybridByKey()
5868 PetscCall(PetscCalloc1(maxDof, &zeroes)); in DMPlexComputeResidualHybridByKey()
H A Dplexgmsh.c1991 PetscInt maxDof = GmshNumNodes_HEX(order) * coordDim; in DMPlexCreateGmsh() local
2002 PetscCall(PetscMalloc1(maxDof, &cellCoords)); in DMPlexCreateGmsh()
/petsc/include/petsc/private/
H A Dsectionimpl.h37 PetscInt maxDof; /* Maximum dof on any point */ member
103 s->maxDof = PETSC_INT_MIN; in PetscSectionInvalidateMaxDof_Internal()
/petsc/src/snes/impls/patch/
H A Dsnespatch.c74 PetscInt i, pStart, dof, maxDof = -1; in PCSetUp_PATCH_Nonlinear() local
91 maxDof = PetscMax(maxDof, dof); in PCSetUp_PATCH_Nonlinear()
97 PetscCall(VecCreateSeq(PETSC_COMM_SELF, maxDof, &patch->patchStateWithAll)); in PCSetUp_PATCH_Nonlinear()
/petsc/src/dm/impls/forest/tests/
H A Dex2.c81 PetscInt p, pStart, pEnd, maxDof; in IdentifyBadPoints() local
94 PetscCall(PetscSectionGetMaxDof(section, &maxDof)); in IdentifyBadPoints()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DSection.pyx702 cdef PetscInt maxDof = 0
703 CHKERR(PetscSectionGetMaxDof(self.sec, &maxDof))
704 return toInt(maxDof)
/petsc/src/vec/is/section/interface/
H A Dsection.c1379 PetscErrorCode PetscSectionGetMaxDof(PetscSection s, PetscInt *maxDof) in PetscSectionGetMaxDof() argument
1385 PetscAssertPointer(maxDof, 2); in PetscSectionGetMaxDof()
1386 if (s->maxDof == PETSC_INT_MIN) { in PetscSectionGetMaxDof()
1387 s->maxDof = 0; in PetscSectionGetMaxDof()
1388 for (p = 0; p < s->pEnd - s->pStart; ++p) s->maxDof = PetscMax(s->maxDof, s->atlasDof[p]); in PetscSectionGetMaxDof()
1390 *maxDof = s->maxDof; in PetscSectionGetMaxDof()
2806 s->maxDof = 0; in PetscSectionReset()
/petsc/src/ksp/pc/impls/patch/
H A Dpcpatch.c2463 PetscInt maxDof = -1, maxDofWithArtificial = -1; in PCSetUp_PATCH() local
2555 maxDof = PetscMax(maxDof, dof); in PCSetUp_PATCH()
2635 PetscCall(VecCreateSeq(PETSC_COMM_SELF, maxDof, &patch->patchRHS)); in PCSetUp_PATCH()
2637 PetscCall(VecCreateSeq(PETSC_COMM_SELF, maxDof, &patch->patchUpdate)); in PCSetUp_PATCH()