| /petsc/src/dm/impls/plex/tutorials/ |
| H A D | ex1.c | 12 PetscInt numDof[12]; in main() local 29 for (PetscInt i = 0; i < numFields * (dim + 1); ++i) numDof[i] = 0; in main() 31 numDof[0 * (dim + 1) + 0] = 1; in main() 33 numDof[1 * (dim + 1) + dim] = dim; in main() 35 numDof[2 * (dim + 1) + dim - 1] = dim - 1; in main() 44 …PetscCall(DMPlexCreateSection(dm, NULL, numComp, numDof, numBC, bcField, NULL, bcPointIS, NULL, &s… in main()
|
| H A D | ex1f90.F90 | 17 PetscInt, target, dimension(12) :: numDof 44 numDof(i) = 0 47 numDof(0*(dim + 1) + 1) = 1 49 numDof(1*(dim + 1) + dim + 1) = dim 51 numDof(2*(dim + 1) + dim) = dim - 1 52 pNumDof => numDof
|
| H A D | ex14.c | 14 PetscInt numDof[12]; in main() local 34 for (i = 0; i < numFields * (dim + 1); ++i) numDof[i] = 0; in main() 36 numDof[0 * (dim + 1) + dim] = 1; in main() 38 numDof[1 * (dim + 1) + 0] = dim; in main() 44 …PetscCall(DMPlexCreateSection(dm, NULL, numComp, numDof, numBC, NULL, NULL, NULL, NULL, §ion)); in main()
|
| H A D | ex14f90.F90 | 12 PetscInt, dimension(12) :: numDof 32 numDof = 0 34 numDof(0*(dim + 1) + dim + 1) = 1 36 numDof(1*(dim + 1) + 1) = dim 42 …PetscCallA(DMPlexCreateSection(dm, PETSC_NULL_DMLABEL_ARRAY, numComp, numDof, numBC, PETSC_NULL_IN…
|
| H A D | ex6.c | 204 PetscInt numDof = user->k[f] - 1; in SetSymmetries() local 217 PetscCall(PetscMalloc1(numDof * numComp, &perm)); in SetSymmetries() 218 for (i = numDof - 1, k = 0; i >= 0; i--) { in SetSymmetries() 224 …PetscCall(PetscSectionSymLabelSetStratum(sym, d, numDof * numComp, minOrnt, maxOrnt, PETSC_OWN_POI… in SetSymmetries() 227 PetscInt numDof = perEdge * perEdge; in SetSymmetries() local 238 PetscCall(PetscMalloc1(numDof * numComp, &perm)); in SetSymmetries() 297 …PetscCall(PetscSectionSymLabelSetStratum(sym, d, numDof * numComp, minOrnt, maxOrnt, PETSC_OWN_POI… in SetSymmetries() 325 PetscInt *numDof, d; in main() local 327 PetscCall(PetscMalloc1(user.Nf * (dim + 1), &numDof)); in main() 329 … for (d = 0; d <= dim; ++d) numDof[f * (dim + 1) + d] = PetscPowInt(user.k[f] - 1, d) * user.Nc[f]; in main() [all …]
|
| /petsc/src/binding/petsc4py/demo/legacy/dmplex/ |
| H A D | distribute_field.py | 41 numDof = [0] * 3 variable 43 numDof[0] = 1 45 numDof[1] = 1 47 numDof[2] = 1 50 origSect = plex.createSection(numComp, numDof)
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | Section.pyx | 333 def setDof(self, point: int, numDof: int) -> None: 342 numDof 351 cdef PetscInt cnumDof = asInt(numDof) 354 def addDof(self, point: int, numDof: int) -> None: 355 """Add ``numDof`` degrees of freedom associated with a given point. 363 numDof 372 cdef PetscInt cnumDof = asInt(numDof) 397 def setFieldDof(self, point: int, field: int, numDof: int) -> None: 408 numDof 418 cdef PetscInt cnumDof = asInt(numDof) [all …]
|
| H A D | FE.pyx | 300 cdef const PetscInt *numDof = NULL 303 CHKERR(PetscFEGetNumDof(self.fe, &numDof)) 304 return array_i(cdim, numDof)
|
| H A D | DMPlex.pyx | 1903 def createSection(self, numComp: Sequence[int], numDof: Sequence[int], 1914 numDof 1942 numDof = iarray_i(numDof, &ndof, &idof)
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex10.c | 10 PetscInt *numDof; /* The dof signature for the section */ member 22 options->numDof = NULL; in ProcessOptions() 42 PetscCall(PetscFree(user->numDof)); in CleanupContext() 159 PetscCall(PetscCalloc1(len, &user.numDof)); in main() 161 …tionsIntArray("-num_dof", "The dof signature for the section", "ex10.c", user.numDof, &len, &flg)); in main() 168 …PetscCall(DMPlexCreateSection(dm, NULL, user.numComponents, user.numDof, 0, NULL, NULL, NULL, NULL… in main() 175 …PetscCall(DMPlexCreateSection(dm, NULL, user.numComponents, user.numDof, 0, NULL, NULL, NULL, NULL… in main()
|
| H A D | ex52.c | 64 PetscInt numDof[6] = {0}; in main() local 65 for (PetscInt i = 0; i < numFields; i++) numDof[i * (dim + 1) + dim] = 1; in main() 71 PetscCall(DMPlexCreateSection(plex, NULL, numComp, numDof, 0, NULL, NULL, NULL, NULL, §ion)); in main()
|
| H A D | ex15.c | 16 PetscInt numDof[3] = {2, 0, 0}; in main() local 38 numDof[0] = dim; in main() 40 …PetscCall(DMPlexCreateSection(dm, NULL, numComp, numDof, numBC, bcFields, bcPoints, NULL, NULL, &s… in main()
|
| H A D | ex9.c | 13 PetscInt *numDof; /* The dof signature for the section */ member 37 options->numDof = NULL; in ProcessOptions() 60 PetscCall(PetscMalloc1(len, &options->numDof)); in ProcessOptions() 61 …nsIntArray("-num_dof", "The dof signature for the section", "ex9.c", options->numDof, &len, &flg)); in ProcessOptions() 69 …for (d = 0; d <= options->dim; ++d) options->numDof[f * (options->dim + 1) + d] *= options->numCom… in ProcessOptions() 343 …PetscCall(DMPlexCreateSection(dm, NULL, user->numComponents, user->numDof, 0, NULL, NULL, NULL, NU… in TestVecClosure() 391 PetscCall(PetscFree(user->numDof)); in CleanupContext()
|
| H A D | ex47.c | 529 PetscInt numDof[4] = {0, 0, 0, 0}; in main() local 533 numDof[dim] = 1; in main() 536 PetscCall(DMPlexCreateSection(dm, NULL, numComp, numDof, numBC, NULL, NULL, NULL, NULL, &s)); in main()
|
| H A D | ex12.c | 95 PetscInt numDof[] = {0, 0, 0, 1}; in CreateMesh() local 99 …PetscCall(DMPlexCreateSection(*dm, NULL, numComp, numDof + 3 - dim, 0, NULL, NULL, NULL, NULL, &se… in CreateMesh()
|
| /petsc/src/dm/dt/dualspace/impls/simple/ |
| H A D | dspacesimple.c | 27 PetscCall(PetscFree(s->numDof)); in PetscDualSpaceDestroy_Simple() 61 PetscCall(PetscFree(s->numDof)); in PetscDualSpaceSimpleSetDimension_Simple() 64 PetscCall(PetscCalloc1(spatialDim + 1, &s->numDof)); in PetscDualSpaceSimpleSetDimension_Simple() 65 s->numDof[spatialDim] = dim; in PetscDualSpaceSimpleSetDimension_Simple() 176 s->numDof = NULL; in PetscDualSpaceCreate_Simple()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexsection.c | 39 const PetscInt *numDof; in DMPlexCreateSectionFields() local 44 PetscCall(PetscDualSpaceGetNumDof(dspace, &numDof)); in DMPlexCreateSectionFields() 73 …PetscCall(PetscSectionSymLabelSetStratum(sym, depth - h, numDof[depth - h], -kConeSize, kConeSize,… in DMPlexCreateSectionFields() 89 static PetscErrorCode DMPlexCreateSectionDof(DM dm, DMLabel label[], const PetscInt numDof[], Petsc… in DMPlexCreateSectionDof() argument 157 dof = d < 0 ? 0 : numDof[f * (dim + 1) + d]; in DMPlexCreateSectionDof() 169 const PetscInt dof = numDof[f * (dim + 1) + d]; in DMPlexCreateSectionDof() 427 …Section(DM dm, DMLabel label[], const PetscInt numComp[], const PetscInt numDof[], PetscInt numBC,… in DMPlexCreateSection() argument 433 PetscCall(DMPlexCreateSectionDof(dm, label, numDof, *section)); in DMPlexCreateSection() 454 PetscInt *bcFields, *numComp, *numDof; in DMCreateLocalSection_Plex() local 587 PetscCall(PetscCalloc3(Nf, &labels, Nf, &numComp, Nf * (dim + 1), &numDof)); in DMCreateLocalSection_Plex() [all …]
|
| H A D | plexpreallocate.c | 249 PetscInt dim, pStart, pEnd, numDof, globalOffStart, globalOffEnd, numCols, adjSize; in DMPlexCreateAdjacencySection_Static() local 265 PetscCall(PetscSectionGetStorageSize(section, &numDof)); in DMPlexCreateAdjacencySection_Static() 267 PetscCall(PetscSectionSetChart(leafSectionAdj, 0, numDof)); in DMPlexCreateAdjacencySection_Static() 269 PetscCall(PetscSectionSetChart(rootSectionAdj, 0, numDof)); in DMPlexCreateAdjacencySection_Static()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex52.c | 271 PetscInt numDof[12]; in main() local 291 for (i = 0; i < numFields * (dim + 1); ++i) numDof[i] = 0; in main() 293 numDof[0 * (dim + 1)] = 1; in main() 294 numDof[0 * (dim + 1) + dim - 1] = 1; in main() 295 numDof[0 * (dim + 1) + dim] = 1; in main() 306 …PetscCall(DMPlexCreateSection(da, NULL, numComp, numDof, numBC, bcField, NULL, bcPointIS, NULL, &s… in main()
|
| /petsc/src/dm/tutorials/ |
| H A D | ex20.c | 160 PetscInt numDof[] = {1, 0, 0}; /* vert, edge, cell */ in pic_insert_DMPLEX_with_cell_list() local 164 …PetscCall(DMPlexCreateSection(celldm, NULL, numComp, numDof, numBC, NULL, NULL, NULL, NULL, §i… in pic_insert_DMPLEX_with_cell_list() 229 PetscInt numDof[] = {1, 0, 0}; /* vert, edge, cell */ in pic_insert_DMPLEX() local 233 …PetscCall(DMPlexCreateSection(celldm, NULL, numComp, numDof, numBC, NULL, NULL, NULL, NULL, §i… in pic_insert_DMPLEX()
|
| H A D | ex21.c | 56 PetscInt numDof[] = {1, 0, 0}; /* vert, edge, cell */ in pic_advect() local 75 …PetscCall(DMPlexCreateSection(celldm, NULL, numComp, numDof, numBC, NULL, NULL, NULL, NULL, §i… in pic_advect()
|
| /petsc/src/vec/is/section/interface/ |
| H A D | section.c | 941 PetscErrorCode PetscSectionGetDof(PetscSection s, PetscInt point, PetscInt *numDof) in PetscSectionGetDof() argument 945 PetscAssertPointer(numDof, 3); in PetscSectionGetDof() 947 *numDof = s->atlasDof[point - s->pStart]; in PetscSectionGetDof() 968 PetscErrorCode PetscSectionSetDof(PetscSection s, PetscInt point, PetscInt numDof) in PetscSectionSetDof() argument 973 s->atlasDof[point - s->pStart] = numDof; in PetscSectionSetDof() 995 PetscErrorCode PetscSectionAddDof(PetscSection s, PetscInt point, PetscInt numDof) in PetscSectionAddDof() argument 1000 …PetscCheck(numDof >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "numDof %" PetscInt_FMT " shoul… in PetscSectionAddDof() 1001 s->atlasDof[point - s->pStart] += numDof; in PetscSectionAddDof() 1023 …ErrorCode PetscSectionGetFieldDof(PetscSection s, PetscInt point, PetscInt field, PetscInt *numDof) in PetscSectionGetFieldDof() argument 1027 PetscAssertPointer(numDof, 4); in PetscSectionGetFieldDof() [all …]
|
| /petsc/src/dm/dt/dualspace/interface/ |
| H A D | dualspace.c | 384 PetscCall(PetscFree(sp->numDof)); in PetscDualSpaceClearDMData_Internal() 783 PetscErrorCode PetscDualSpaceGetNumDof(PetscDualSpace sp, const PetscInt *numDof[]) in PetscDualSpaceGetNumDof() argument 787 PetscAssertPointer(numDof, 2); in PetscDualSpaceGetNumDof() 789 if (!sp->numDof) { in PetscDualSpaceGetNumDof() 796 PetscCall(PetscCalloc1(depth + 1, &sp->numDof)); in PetscDualSpaceGetNumDof() 803 PetscCall(PetscSectionGetDof(section, dStart, &sp->numDof[d])); in PetscDualSpaceGetNumDof() 806 *numDof = sp->numDof; in PetscDualSpaceGetNumDof() 807 …PetscCheck(*numDof, PetscObjectComm((PetscObject)sp), PETSC_ERR_LIB, "Empty numDof[] returned from… in PetscDualSpaceGetNumDof()
|
| /petsc/include/petsc/private/ |
| H A D | petscfeimpl.h | 130 PetscInt *numDof; member 199 PetscInt *numDof; member
|
| /petsc/src/dm/dt/fe/interface/ |
| H A D | fe.c | 759 PetscErrorCode PetscFEGetNumDof(PetscFE fem, const PetscInt *numDof[]) in PetscFEGetNumDof() argument 763 PetscAssertPointer(numDof, 2); in PetscFEGetNumDof() 764 PetscCall(PetscDualSpaceGetNumDof(fem->dualSpace, numDof)); in PetscFEGetNumDof()
|