Home
last modified time | relevance | path

Searched refs:numComp (Results 1 – 25 of 29) sorted by relevance

12

/petsc/src/dm/impls/plex/tutorials/
H A Dex6.c205 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 Dex1.c11 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 Dex1f90.F9015 PetscInt, target, dimension(3) :: numComp
39 numComp(1) = 1
40 numComp(2) = dim
41 numComp(3) = dim - 1
42 pNumComp => numComp
H A Dex14.c13 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, &section)); in main()
H A Dex14f90.F9011 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 Ddistribute_field.py39 numComp = 1 variable
50 origSect = plex.createSection(numComp, numDof)
/petsc/src/dm/impls/plex/
H A Dplexsection.c4 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 Dplexsubmesh.c3238 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 Dplexgeometry.c3729 PetscInt numComp, pdim, i, j, k, l, m, coordSize; in DMPlexCoordinatesToReference_FE() local
3738 PetscCall(PetscFEGetNumComponents(fe, &numComp)); in DMPlexCoordinatesToReference_FE()
3739numComp == 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()
3802numComp == Nc, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, "coordinate discretization must ha… in DMPlexReferenceToCoordinates_FE()
/petsc/src/dm/tutorials/
H A Dex20.c159 PetscInt numComp[] = {1}; in pic_insert_DMPLEX_with_cell_list() local
164 …PetscCall(DMPlexCreateSection(celldm, NULL, numComp, numDof, numBC, NULL, NULL, NULL, NULL, &secti… 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, &secti… in pic_insert_DMPLEX()
H A Dex21.c55 PetscInt numComp[] = {1}; in pic_advect() local
75 …PetscCall(DMPlexCreateSection(celldm, NULL, numComp, numDof, numBC, NULL, NULL, NULL, NULL, &secti… in pic_advect()
/petsc/src/dm/impls/plex/tests/
H A Dex52.c63 PetscInt numComp[2] = {1, 1}; in main() local
71 PetscCall(DMPlexCreateSection(plex, NULL, numComp, numDof, 0, NULL, NULL, NULL, NULL, &section)); in main()
H A Dex15.c15 PetscInt numComp[1] = {2}; in main() local
40 …PetscCall(DMPlexCreateSection(dm, NULL, numComp, numDof, numBC, bcFields, bcPoints, NULL, NULL, &s… in main()
H A Dex12.c94 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 Dex47.c528 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 Dex11.c160 PetscInt numComp[] = {1}; in TestEmptyStrata() local
165 PetscCall(DMPlexCreateSection(dm, NULL, numComp, dof, 0, NULL, NULL, NULL, NULL, &s)); in TestEmptyStrata()
H A Dex3.c457 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 Dsection.c108 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 Dex52.c270 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 Dpetsc_gen_xdmf.py185 def writeParticleField(self, fp, fieldname, numParticles, numComp): argument
194 ''' % (fieldname, fieldname, numParticles, numComp, fieldname))
/petsc/src/dm/impls/plex/cgns/
H A Dplexcgns2.c2515 int numComp; in VecLoad_Plex_CGNS_Internal() local
2574 PetscCallCGNSRead(cg_nfields(cgid, B, z, isol, &numComp), V, viewer); in VecLoad_Plex_CGNS_Internal()
2575numComp || 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 DSection.pyx217 def setFieldComponents(self, field: int, numComp: int) -> None:
226 numComp
235 cdef PetscInt cnumComp = asInt(numComp)
/petsc/src/vec/is/sf/utils/
H A Dsfutils.c271 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 Dfe.c1099 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 Dfv.c1805 PetscInt numComp, numSubelements, s; in PetscFVRefine() local
1820 PetscCall(PetscFVGetNumComponents(fv, &numComp)); in PetscFVRefine()
1821 PetscCall(PetscFVSetNumComponents(*fvRef, numComp)); in PetscFVRefine()

12