Searched refs:numConst (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/dm/impls/plex/ |
| H A D | plexsection.c | 219 PetscInt numConst; in DMPlexCreateSectionBCDof() local 222 PetscCall(PetscSectionGetFieldDof(section, p, field, &numConst)); in DMPlexCreateSectionBCDof() 224 PetscCall(PetscSectionGetDof(section, p, &numConst)); in DMPlexCreateSectionBCDof() 231 …numConst % Nc == 0, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Point %" PetscInt_FMT " has %" PetscInt… in DMPlexCreateSectionBCDof() 232 numConst = (numConst / Nc) * cNc; in DMPlexCreateSectionBCDof() 234 numConst = PetscMin(numConst, cNc); in DMPlexCreateSectionBCDof() 237 if (Nf) PetscCall(PetscSectionAddFieldConstraintDof(section, p, field, numConst)); in DMPlexCreateSectionBCDof() 238 PetscCall(PetscSectionAddConstraintDof(section, p, numConst)); in DMPlexCreateSectionBCDof() 373 PetscInt numConst = 0, foff = 0; in DMPlexCreateSectionBCIndices() local 383 for (d = 0; d < fcdof; ++d) indices[numConst + d] = find[d] + foff; in DMPlexCreateSectionBCIndices() [all …]
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex3.c | 398 PetscInt numConst; in SetupSection() local 427 numConst = vertsy + edgesy; in SetupSection() 428 PetscCall(PetscMalloc1(numConst, &anchors)); in SetupSection() 439 PetscCall(ISCreateGeneral(PETSC_COMM_SELF, numConst, anchors, PETSC_OWN_POINTER, &aIS)); in SetupSection()
|
| /petsc/src/vec/is/section/interface/ |
| H A D | section.c | 2092 PetscInt fdof = 0, cfdof = 0, fc, numConst = 0, fOff = 0; in PetscSectionCreateSubsection() local 2099 for (fc = 0; fc < cfdof; ++fc) indices[numConst + fc] = oldIndices[fc] + fOff; in PetscSectionCreateSubsection() 2100 numConst += cfdof; in PetscSectionCreateSubsection() 2265 PetscInt dof, numConst = 0, fOff = 0; in PetscSectionCreateSupersection() local 2278 for (fc = 0; fc < cfdof; ++fc) indices[numConst + fc] = oldIndices[fc]; in PetscSectionCreateSupersection() 2279 PetscCall(PetscSectionSetFieldConstraintIndices(*supers, p, f, &indices[numConst])); in PetscSectionCreateSupersection() 2280 for (fc = 0; fc < cfdof; ++fc) indices[numConst + fc] += fOff; in PetscSectionCreateSupersection() 2281 numConst += cfdof; in PetscSectionCreateSupersection()
|