| /petsc/src/dm/impls/plex/tutorials/ |
| H A D | ex6.c | 205 PetscInt numComp = user->Nc[f]; in SetSymmetries() local 217 PetscCall(PetscMalloc1(numDof * numComp, &perm)); in SetSymmetries() 219 for (j = 0; j < numComp; j++, k++) perm[k] = i * numComp + j; in SetSymmetries() 224 …PetscCall(PetscSectionSymLabelSetStratum(sym, d, numDof * numComp, minOrnt, maxOrnt, PETSC_OWN_POI… in SetSymmetries() 228 PetscInt numComp = user->Nc[f]; in SetSymmetries() local 238 PetscCall(PetscMalloc1(numDof * numComp, &perm)); in SetSymmetries() 246 … for (c = 0; c < numComp; c++) perm[k * numComp + c] = (perEdge * j + i) * numComp + c; in SetSymmetries() 253 …for (c = 0; c < numComp; c++) perm[k * numComp + c] = (perEdge * (perEdge - 1 - i) + j) * numComp … in SetSymmetries() 260 …for (c = 0; c < numComp; c++) perm[k * numComp + c] = (perEdge * (perEdge - 1 - j) + (perEdge - 1 … in SetSymmetries() 267 …for (c = 0; c < numComp; c++) perm[k * numComp + c] = (perEdge * i + (perEdge - 1 - j)) * numComp … in SetSymmetries() [all …]
|
| H A D | ex1.c | 11 PetscInt numComp[3]; in main() local 26 numComp[0] = 1; in main() 27 numComp[1] = dim; in main() 28 numComp[2] = dim - 1; in main() 44 …PetscCall(DMPlexCreateSection(dm, NULL, numComp, numDof, numBC, bcField, NULL, bcPointIS, NULL, &s… in main()
|
| H A D | ex1f90.F90 | 15 PetscInt, target, dimension(3) :: numComp 39 numComp(1) = 1 40 numComp(2) = dim 41 numComp(3) = dim - 1 42 pNumComp => numComp
|
| H A D | ex14.c | 13 PetscInt numComp[2]; in main() local 32 numComp[0] = 1; in main() 33 numComp[1] = dim; in main() 44 …PetscCall(DMPlexCreateSection(dm, NULL, numComp, numDof, numBC, NULL, NULL, NULL, NULL, §ion)); in main()
|
| H A D | ex14f90.F90 | 11 PetscInt, dimension(2) :: numComp 31 numComp = [one, dim] 42 …PetscCallA(DMPlexCreateSection(dm, PETSC_NULL_DMLABEL_ARRAY, numComp, numDof, numBC, PETSC_NULL_IN…
|
| /petsc/src/binding/petsc4py/demo/legacy/dmplex/ |
| H A D | distribute_field.py | 39 numComp = 1 variable 50 origSect = plex.createSection(numComp, numDof)
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexsection.c | 4 static PetscErrorCode DMPlexCreateSectionFields(DM dm, const PetscInt numComp[], PetscSection *sect… in DMPlexCreateSectionFields() argument 31 if (numComp) { in DMPlexCreateSectionFields() 33 PetscCall(PetscSectionSetFieldComponents(*section, f, numComp[f])); in DMPlexCreateSectionFields() 427 PetscErrorCode DMPlexCreateSection(DM dm, DMLabel label[], const PetscInt numComp[], const PetscInt… in DMPlexCreateSection() argument 432 PetscCall(DMPlexCreateSectionFields(dm, numComp, 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() 595 PetscCall(PetscFEGetNumComponents(fe, &numComp[f])); in DMCreateLocalSection_Plex() 602 PetscCall(PetscFVGetNumComponents(fv, &numComp[f])); in DMCreateLocalSection_Plex() 603 numDof[f * (dim + 1) + dim] = numComp[f]; in DMCreateLocalSection_Plex() [all …]
|
| H A D | plexsubmesh.c | 3238 PetscInt numComp, coordSize, v; in DMPlexCreateSubmesh_Uninterpolated() local 3245 PetscCall(PetscSectionGetFieldComponents(coordSection, 0, &numComp)); in DMPlexCreateSubmesh_Uninterpolated() 3246 PetscCall(PetscSectionSetFieldComponents(subCoordSection, 0, numComp)); in DMPlexCreateSubmesh_Uninterpolated() 3569 …PetscInt bs, numComp, coordSize, firstP, lastP, firstSubP = totSubPoints, lastSubP = -1, numFi… in DMPlexCreateSubmeshGeneric_Interpolated() local 3627 PetscCall(PetscSectionGetFieldComponents(coordSection, 0, &numComp)); in DMPlexCreateSubmeshGeneric_Interpolated() 3628 PetscCall(PetscSectionSetFieldComponents(subCoordSection, 0, numComp)); in DMPlexCreateSubmeshGeneric_Interpolated() 4039 PetscInt cdim, numComp, coordSize, v; in DMPlexCreateCohesiveSubmesh_Uninterpolated() local 4047 PetscCall(PetscSectionGetFieldComponents(coordSection, 0, &numComp)); in DMPlexCreateCohesiveSubmesh_Uninterpolated() 4048 PetscCall(PetscSectionSetFieldComponents(subCoordSection, 0, numComp)); in DMPlexCreateCohesiveSubmesh_Uninterpolated()
|
| H A D | plexgeometry.c | 3729 PetscInt numComp, pdim, i, j, k, l, m, coordSize; in DMPlexCoordinatesToReference_FE() local 3738 PetscCall(PetscFEGetNumComponents(fe, &numComp)); in DMPlexCoordinatesToReference_FE() 3739 …numComp == Nc, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, "coordinate discretization must ha… in DMPlexCoordinatesToReference_FE() 3794 PetscInt numComp, pdim, i, j, k, l, coordSize; in DMPlexReferenceToCoordinates_FE() local 3801 PetscCall(PetscFEGetNumComponents(fe, &numComp)); in DMPlexReferenceToCoordinates_FE() 3802 …numComp == Nc, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, "coordinate discretization must ha… in DMPlexReferenceToCoordinates_FE()
|
| /petsc/src/dm/tutorials/ |
| H A D | ex20.c | 159 PetscInt numComp[] = {1}; 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() 228 PetscInt numComp[] = {1}; 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 | 55 PetscInt numComp[] = {1}; in pic_advect() local 75 …PetscCall(DMPlexCreateSection(celldm, NULL, numComp, numDof, numBC, NULL, NULL, NULL, NULL, §i… in pic_advect()
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex52.c | 63 PetscInt numComp[2] = {1, 1}; in main() local 71 PetscCall(DMPlexCreateSection(plex, NULL, numComp, numDof, 0, NULL, NULL, NULL, NULL, §ion)); in main()
|
| H A D | ex15.c | 15 PetscInt numComp[1] = {2}; in main() local 40 …PetscCall(DMPlexCreateSection(dm, NULL, numComp, numDof, numBC, bcFields, bcPoints, NULL, NULL, &s… in main()
|
| H A D | ex12.c | 94 PetscInt numComp[] = {1}; in CreateMesh() local 99 …PetscCall(DMPlexCreateSection(*dm, NULL, numComp, numDof + 3 - dim, 0, NULL, NULL, NULL, NULL, &se… in CreateMesh()
|
| H A D | ex47.c | 528 const PetscInt numComp[1] = {1}; in main() local 536 PetscCall(DMPlexCreateSection(dm, NULL, numComp, numDof, numBC, NULL, NULL, NULL, NULL, &s)); in main()
|
| H A D | ex11.c | 160 PetscInt numComp[] = {1}; in TestEmptyStrata() local 165 PetscCall(DMPlexCreateSection(dm, NULL, numComp, dof, 0, NULL, NULL, NULL, NULL, &s)); in TestEmptyStrata()
|
| H A D | ex3.c | 457 PetscInt cStart, cEnd, c, numComp; in SetupSection() local 468 PetscCall(PetscFEGetNumComponents(user->fe, &numComp)); in SetupSection() 491 …of % numComp == 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Point dofs not divisible by field components:… in SetupSection()
|
| /petsc/src/vec/is/section/interface/ |
| H A D | section.c | 108 PetscInt numComp = 0; in PetscSectionCopy_Internal() local 112 PetscCall(PetscSectionGetFieldComponents(section, f, &numComp)); in PetscSectionCopy_Internal() 113 PetscCall(PetscSectionSetFieldComponents(newSection, f, numComp)); in PetscSectionCopy_Internal() 114 for (c = 0; c < numComp; ++c) { in PetscSectionCopy_Internal() 552 PetscErrorCode PetscSectionGetFieldComponents(PetscSection s, PetscInt field, PetscInt *numComp) in PetscSectionGetFieldComponents() argument 556 PetscAssertPointer(numComp, 3); in PetscSectionGetFieldComponents() 558 *numComp = s->numFieldComponents[field]; in PetscSectionGetFieldComponents() 588 PetscErrorCode PetscSectionSetFieldComponents(PetscSection s, PetscInt field, PetscInt numComp) in PetscSectionSetFieldComponents() argument 600 s->numFieldComponents[field] = numComp; in PetscSectionSetFieldComponents() 601 if (numComp) { in PetscSectionSetFieldComponents() [all …]
|
| /petsc/src/ts/tutorials/ |
| H A D | ex52.c | 270 PetscInt numComp[1]; in main() local 289 numComp[0] = 1; in main() 306 …PetscCall(DMPlexCreateSection(da, NULL, numComp, numDof, numBC, bcField, NULL, bcPointIS, NULL, &s… in main()
|
| /petsc/lib/petsc/bin/ |
| H A D | petsc_gen_xdmf.py | 185 def writeParticleField(self, fp, fieldname, numParticles, numComp): argument 194 ''' % (fieldname, fieldname, numParticles, numComp, fieldname))
|
| /petsc/src/dm/impls/plex/cgns/ |
| H A D | plexcgns2.c | 2515 int numComp; in VecLoad_Plex_CGNS_Internal() local 2574 PetscCallCGNSRead(cg_nfields(cgid, B, z, isol, &numComp), V, viewer); in VecLoad_Plex_CGNS_Internal() 2575 …numComp || V_numComps == 0, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "Vec sized for % " PetscIn… in VecLoad_Plex_CGNS_Internal() 2579 PetscCall(PetscMalloc1(myownedv * numComp, &fields_CGNS)); in VecLoad_Plex_CGNS_Internal() 2580 PetscCall(PetscMalloc1(myownedv * numComp, &fields)); in VecLoad_Plex_CGNS_Internal() 2581 for (int d = 0; d < numComp; ++d) { in VecLoad_Plex_CGNS_Internal() 2586 for (int d = 0; d < numComp; ++d) { in VecLoad_Plex_CGNS_Internal() 2587 … for (PetscInt v = 0; v < myownedv; ++v) fields[v * numComp + d] = fields_CGNS[d * myownedv + v]; in VecLoad_Plex_CGNS_Internal() 2597 PetscCallMPI(MPI_Type_contiguous(numComp, MPIU_SCALAR, &fieldtype)); in VecLoad_Plex_CGNS_Internal()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | Section.pyx | 217 def setFieldComponents(self, field: int, numComp: int) -> None: 226 numComp 235 cdef PetscInt cnumComp = asInt(numComp)
|
| /petsc/src/vec/is/sf/utils/ |
| H A D | sfutils.c | 271 PetscInt numComp = 0; in PetscSFDistributeSection() local 274 PetscCall(PetscSectionGetFieldComponents(rootSection, f, &numComp)); in PetscSFDistributeSection() 278 PetscCall(PetscSectionSetFieldComponents(leafSection, f, numComp)); in PetscSFDistributeSection()
|
| /petsc/src/dm/dt/fe/interface/ |
| H A D | fe.c | 1099 PetscInt dim, depth, numComp, i, j, coneSize, order; in PetscFECreatePointTraceDefault_Internal() local 1130 PetscCall(PetscFEGetNumComponents(fe, &numComp)); in PetscFECreatePointTraceDefault_Internal() 1131 PetscCall(PetscFESetNumComponents(*trFE, numComp)); in PetscFECreatePointTraceDefault_Internal() 1811 PetscInt numComp, numSubelements; in PetscFERefine() local 1842 PetscCall(PetscFEGetNumComponents(fe, &numComp)); in PetscFERefine() 1843 PetscCall(PetscFESetNumComponents(*feRef, numComp)); in PetscFERefine()
|
| /petsc/src/dm/dt/fv/interface/ |
| H A D | fv.c | 1805 PetscInt numComp, numSubelements, s; in PetscFVRefine() local 1820 PetscCall(PetscFVGetNumComponents(fv, &numComp)); in PetscFVRefine() 1821 PetscCall(PetscFVSetNumComponents(*fvRef, numComp)); in PetscFVRefine()
|