Home
last modified time | relevance | path

Searched refs:pEnd (Results 1 – 25 of 101) sorted by relevance

12345

/petsc/src/dm/impls/plex/tests/
H A Dex48.c11 PetscInt pStart, pEnd, p; in main() local
21 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in main()
22 PetscCall(PetscSectionSetChart(section, pStart, pEnd)); in main()
23 PetscCall(DMPlexGetHeightStratum(dm, 0, &pStart, &pEnd)); in main()
24 for (p = pStart; p < pEnd; p++) PetscCall(PetscSectionSetDof(section, p, 1)); in main()
25 PetscCall(DMPlexGetDepthStratum(dm, 0, &pStart, &pEnd)); in main()
26 for (p = pStart; p < pEnd; p++) PetscCall(PetscSectionSetDof(section, p, 2)); in main()
35 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in main()
36 for (p = pStart; p < pEnd; ++p) { in main()
45 for (p = pStart; p < pEnd; ++p) { in main()
H A Dex6.c7 PetscInt pStart, pEnd; /* The label chart */ member
18 options->pEnd = 1000; in ProcessOptions()
25 …ionsBoundedInt("-pend", "The label point limit", "ex6.c", options->pEnd, &options->pEnd, NULL, 0)); in ProcessOptions()
34 PetscInt n = (PetscInt)(user->fill * (user->pEnd - user->pStart)), i; in TestSetup()
39 PetscCall(PetscRandomSetInterval(r, user->pStart, user->pEnd)); in TestSetup()
55 PetscCall(DMLabelCreateIndex(label, user->pStart, user->pEnd)); in TestSetup()
56 … ", %" PetscInt_FMT ") and set %" PetscInt_FMT " values\n", user->pStart, user->pEnd, user->size)); in TestSetup()
63 const PetscInt pEnd = user->pEnd; in TestLookup() local
67 for (p = pStart; p < pEnd; ++p) { in TestLookup()
83 PetscInt pStart = user->pStart, pEnd = user->pEnd, p; in TestClear() local
[all …]
H A Dex48f90.F909 PetscInt :: dof, p, pStart, pEnd, d
26 PetscCallA(DMPlexGetChart(dm, pStart, pEnd, ierr))
27 PetscCallA(PetscSectionSetChart(section, pStart, pEnd, ierr))
28 PetscCallA(DMPlexGetHeightStratum(dm, zero, pStart, pEnd, ierr))
29 do p = pStart, pEnd - 1
32 PetscCallA(DMPlexGetDepthStratum(dm, zero, pStart, pEnd, ierr))
33 do p = pStart, pEnd - 1
42 PetscCallA(DMPlexGetChart(dm, pStart, pEnd, ierr))
43 do p = pStart, pEnd - 1
54 do p = pStart, pEnd - 1
H A Dex37.c33 PetscInt dim, pStart, pEnd, p, pid; in ComputeVolume() local
43 PetscCall(DMPlexGetHeightStratum(dm, 0, &pStart, &pEnd)); in ComputeVolume()
44 for (p = pStart; p < pEnd; ++p) { in ComputeVolume()
51 PetscCall(DMPlexGetHeightStratum(dm, 1, &pStart, &pEnd)); in ComputeVolume()
52 for (p = pStart; p < pEnd; ++p) { in ComputeVolume()
H A Dex98.c11 PetscInt sdim, s, pStart, pEnd, p, numVS, numPoints; in main() local
39 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in main()
40 PetscCall(PetscSectionSetChart(section, pStart, pEnd)); in main()
43 PetscCall(DMPlexGetDepthStratum(dm, 0, &pStart, &pEnd)); in main()
44 for (p = pStart; p < pEnd; ++p) { in main()
H A Dex97.c9 PetscInt pStart, pEnd, p; in main() local
33 PetscCall(DMPlexGetHeightStratum(dm, 0, &pStart, &pEnd)); in main()
34 for (p = pStart; p < pEnd; ++p) { in main()
H A Dex97f90.F9016 PetscInt :: pStart, pEnd, p
33 PetscCallA(DMPlexGetHeightStratum(dm, 0_kPI, pStart, pEnd, ierr))
34 do p = pStart, pEnd - 1
H A Dex40.c11 PetscInt pStart, pEnd, p; in LabelPoints() local
19 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in LabelPoints()
20 for (p = pStart; p < pEnd; ++p) PetscCall(DMLabelSetValue(label, p, p)); in LabelPoints()
H A Dex98f90.F9015 PetscInt :: sdim, s, pStart, pEnd, p, numVS, numPoints
47 PetscCallA(DMPlexGetChart(dm, pStart, pEnd, ierr))
48 PetscCallA(PetscSectionSetChart(section, pStart, pEnd, ierr))
51 PetscCallA(DMPlexGetDepthStratum(dm, 0_kPI, pStart, pEnd, ierr))
52 do p = pStart, pEnd - 1
/petsc/src/dm/impls/plex/
H A Dplexreorder.c8 PetscInt depth, d, pStart, pEnd, fStart, fMax, fEnd, p; in DMPlexCreateOrderingClosure_Static() local
12 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in DMPlexCreateOrderingClosure_Static()
13 PetscCall(PetscMalloc1(pEnd - pStart, &perm)); in DMPlexCreateOrderingClosure_Static()
14 PetscCall(PetscMalloc1(pEnd - pStart, &iperm)); in DMPlexCreateOrderingClosure_Static()
15 for (p = pStart; p < pEnd; ++p) iperm[p] = -1; in DMPlexCreateOrderingClosure_Static()
17 PetscCall(DMPlexGetDepthStratum(dm, d, &pStart, &pEnd)); in DMPlexCreateOrderingClosure_Static()
20 for (p = pStart; p < pEnd; ++p) { in DMPlexCreateOrderingClosure_Static()
72 …ULL, *adjacency = NULL, *cperm, *clperm = NULL, *invclperm = NULL, *mask, *xls, pStart, pEnd, c, i; in DMPlexGetOrdering() local
131 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in DMPlexGetOrdering()
132 …PetscCall(ISCreateGeneral(PetscObjectComm((PetscObject)dm), pEnd - pStart, invclperm, PETSC_OWN_PO… in DMPlexGetOrdering()
[all …]
H A Dplexindices.c24 PetscInt pStart, pEnd, sStart, sEnd, point, clSize; in DMPlexCreateClosureIndex() local
31 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in DMPlexCreateClosureIndex()
33 PetscCall(PetscSectionSetChart(closureSection, pStart, pEnd)); in DMPlexCreateClosureIndex()
34 for (point = pStart; point < pEnd; ++point) { in DMPlexCreateClosureIndex()
50 for (point = pStart; point < pEnd; ++point) { in DMPlexCreateClosureIndex()
H A Dplexpreallocate.c9 PetscInt pStart, pEnd; in DMPlexComputeAnchorAdjacencies() local
17 PetscCall(PetscSectionGetChart(section, &pStart, &pEnd)); in DMPlexComputeAnchorAdjacencies()
18 PetscCall(PetscSectionSetChart(adjSec, pStart, pEnd)); in DMPlexComputeAnchorAdjacencies()
29 PetscCall(PetscSectionSetChart(inverseSec, pStart, pEnd)); in DMPlexComputeAnchorAdjacencies()
41 PetscCall(PetscCalloc1(pEnd - pStart, &offsets)); in DMPlexComputeAnchorAdjacencies()
77 for (p = pStart; p < pEnd; p++) { in DMPlexComputeAnchorAdjacencies()
91 if ((qAdj < pStart) || (qAdj >= pEnd)) continue; in DMPlexComputeAnchorAdjacencies()
108 for (p = pStart; p < pEnd; p++) { in DMPlexComputeAnchorAdjacencies()
125 if ((qAdj < pStart) || (qAdj >= pEnd)) continue; in DMPlexComputeAnchorAdjacencies()
249 PetscInt dim, pStart, pEnd, numDof, globalOffStart, globalOffEnd, numCols, adjSize; in DMPlexCreateAdjacencySection_Static() local
[all …]
H A Dplexdistribute.c183 PetscInt depth, maxC, maxS, maxP, pStart, pEnd, asiz, maxAnchors = 1; in DMPlexGetMaxAdjacencySize_Internal() local
198 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in DMPlexGetMaxAdjacencySize_Internal()
213 if ((depth == 3 && maxP > 200) || (depth == 2 && maxP > 580)) asiz = pEnd - pStart; in DMPlexGetMaxAdjacencySize_Internal()
216 *max_adjacency_size = PetscMin(asiz, pEnd - pStart); in DMPlexGetMaxAdjacencySize_Internal()
355 PetscInt pStart, pEnd, p, numLeaves, l, numNeighbors, n; in DMPlexCreateTwoSidedProcessSF() local
369 PetscCall(PetscSectionGetChart(rootRankSection, &pStart, &pEnd)); in DMPlexCreateTwoSidedProcessSF()
371 for (p = pStart; p < pEnd; ++p) { in DMPlexCreateTwoSidedProcessSF()
380 PetscCall(PetscSectionGetChart(leafRankSection, &pStart, &pEnd)); in DMPlexCreateTwoSidedProcessSF()
382 for (p = pStart; p < pEnd; ++p) { in DMPlexCreateTwoSidedProcessSF()
445 PetscInt pStart, pEnd, p, nedges; in DMPlexDistributeOwnership() local
[all …]
H A Dplexpartition.c113 PetscInt dim, depth, p, pStart, pEnd, a, adjSize, idx, size; in DMPlexCreatePartitionerGraph_Native() local
145 PetscCall(DMPlexGetHeightStratum(dm, height, &pStart, &pEnd)); in DMPlexCreatePartitionerGraph_Native()
148 PetscCall(PetscSectionSetChart(section, pStart, pEnd)); in DMPlexCreatePartitionerGraph_Native()
153 PetscCall(DMPlexCreateNumbering_Plex(dm, pStart, pEnd, 0, NULL, sfPoint, &cellNumbering)); in DMPlexCreatePartitionerGraph_Native()
211 for (*numVertices = 0, p = pStart; p < pEnd; p++) { in DMPlexCreatePartitionerGraph_Native()
250 if (point != p && pStart <= point && point < pEnd) { in DMPlexCreatePartitionerGraph_Native()
267 for (idx = 0, p = pStart; p < pEnd; p++) { in DMPlexCreatePartitionerGraph_Native()
784 PetscInt p, pStart, pEnd; in PetscPartitionerDMPlexPartition() local
786 PetscCall(DMPlexGetHeightStratum(dm, part->height, &pStart, &pEnd)); in PetscPartitionerDMPlexPartition()
787 PetscCall(DMPlexCreateNumbering_Plex(dm, pStart, pEnd, 0, NULL, dm->sf, &globalNumbering)); in PetscPartitionerDMPlexPartition()
[all …]
/petsc/src/vec/vec/tests/
H A Dex40f90.F907 PetscInt pStart, pEnd, p, three
15 pEnd = 5
16 PetscCallA(PetscSectionSetChart(section, pStart, pEnd, ierr))
17 do p = pStart, pEnd - 1
/petsc/src/vec/is/section/interface/
H A Dsection.c45 (*s)->pEnd = -1; in PetscSectionCreate()
98 PetscInt numFields, f, c, pStart, pEnd, p; in PetscSectionCopy_Internal() local
121 PetscCall(PetscSectionGetChart(section, &pStart, &pEnd)); in PetscSectionCopy_Internal()
122 PetscCall(PetscSectionSetChart(newSection, pStart, pEnd)); in PetscSectionCopy_Internal()
127 for (p = pStart; p < pEnd; ++p) { in PetscSectionCopy_Internal()
147 for (p = pStart; p < pEnd; ++p) { in PetscSectionCopy_Internal()
252 PetscInt pStart, pEnd, nfields, ncdof, nfcdof, p, f, n1, n2; in PetscSectionCompare() local
270 PetscCall(PetscSectionGetChart(s1, &pStart, &pEnd)); in PetscSectionCompare()
272 if (pStart != n1 || pEnd != n2) goto not_congruent; in PetscSectionCompare()
281 for (p = pStart; p < pEnd; ++p) { in PetscSectionCompare()
[all …]
/petsc/src/dm/impls/da/
H A Ddalocal.c234 …cErrorCode DMDAGetHeightStratum(DM dm, PetscInt height, PeOp PetscInt *pStart, PeOp PetscInt *pEnd) in DMDAGetHeightStratum() argument
241 if (pEnd) PetscAssertPointer(pEnd, 4); in DMDAGetHeightStratum()
248 if (pEnd) *pEnd = nC; in DMDAGetHeightStratum()
252 if (pEnd) *pEnd = nC + nV + nXF + nYF + nZF; in DMDAGetHeightStratum()
256 if (pEnd) *pEnd = nC + nV; in DMDAGetHeightStratum()
260 if (pEnd) *pEnd = nC + nV + nXF + nYF + nZF; in DMDAGetHeightStratum()
286 …tscErrorCode DMDAGetDepthStratum(DM dm, PetscInt depth, PeOp PetscInt *pStart, PeOp PetscInt *pEnd) in DMDAGetDepthStratum() argument
293 if (pEnd) PetscAssertPointer(pEnd, 4); in DMDAGetDepthStratum()
300 if (pEnd) *pEnd = nC; in DMDAGetDepthStratum()
304 if (pEnd) *pEnd = nC + nV + nXF + nYF + nZF; in DMDAGetDepthStratum()
[all …]
/petsc/src/dm/label/tutorials/
H A Dex1.c180 PetscInt p, pStart, pEnd; in main() local
181 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in main()
189 pEnd = PetscMin(pEnd, pStart + 5); in main()
190 for (p = pStart; p < pEnd; p++) { in main()
213 PetscInt p, pStart, pEnd; in main() local
230 PetscCall(DMLabelGetBounds(label1, &pStart, &pEnd)); in main()
232 for (p = pStart; p < pEnd; p++) { in main()
240 for (p = pStart; p < pEnd; p++) { in main()
249 PetscCall(DMLabelGetValue(label3, pEnd - 1, &val)); in main()
250 PetscCall(DMLabelSetValue(label3, pEnd, val)); in main()
[all …]
/petsc/src/dm/impls/plex/tutorials/
H A Dex17.c9 PetscInt dim, pStart, pEnd, pid; in ComputeVolume() local
20 PetscCall(DMPlexGetHeightStratum(dm, 0, &pStart, &pEnd)); in ComputeVolume()
21 for (PetscInt p = pStart; p < pEnd; ++p) { in ComputeVolume()
28 PetscCall(DMPlexGetHeightStratum(dm, 1, &pStart, &pEnd)); in ComputeVolume()
29 for (PetscInt p = pStart; p < pEnd; ++p) { in ComputeVolume()
/petsc/src/vec/is/section/interface/hdf5/
H A Dsectionhdf5.c10 PetscInt pStart, pEnd, p, n; in PetscSectionView_HDF5_SingleField() local
17 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionView_HDF5_SingleField()
20 for (p = pStart, n = 0, m = 0; p < pEnd; ++p) { in PetscSectionView_HDF5_SingleField()
37 for (p = pStart, n = 0, m = 0; p < pEnd; ++p) { in PetscSectionView_HDF5_SingleField()
129 PetscInt pStart, pEnd, p, M, m, i, cdof; in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices() local
139 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices()
144 for (p = pStart, m = 0; p < pEnd; ++p) { in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices()
165 for (p = pStart, m = 0; p < pEnd; ++p) { in PetscSectionLoad_HDF5_SingleField_SetConstraintIndices()
177 PetscInt pStart, pEnd, p, N, n, M, m; in PetscSectionLoad_HDF5_SingleField() local
190 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionLoad_HDF5_SingleField()
[all …]
/petsc/src/binding/petsc4py/demo/legacy/dmplex/
H A Ddistribute_field.py34 pStart, pEnd = plex.getChart() variable
36 print("pStart, pEnd: ", pStart, pEnd)
59 origVec.setValues(list(range(pStart, pEnd)),list(range(pStart,pEnd)))
/petsc/src/dm/dt/dualspace/impls/refined/
H A Ddualspacerefined.c36 PetscInt pStart, pEnd; in PetscDualSpaceRefinedSetCellSpaces_Refined() local
42 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in PetscDualSpaceRefinedSetCellSpaces_Refined()
43 if (!sp->pointSpaces) PetscCall(PetscCalloc1(pEnd - pStart, &sp->pointSpaces)); in PetscDualSpaceRefinedSetCellSpaces_Refined()
65 PetscInt pStart, pEnd, depth; in PetscDualSpaceSetUp_Refined() local
74 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in PetscDualSpaceSetUp_Refined()
125 PetscCall(PetscDualSpacePushForwardSubspaces_Internal(sp, pStart, pEnd)); in PetscDualSpaceSetUp_Refined()
133 PetscInt pStart, pEnd; in PetscDualSpaceRefinedView_Ascii() local
136 PetscCall(DMPlexGetChart(sp->dm, &pStart, &pEnd)); in PetscDualSpaceRefinedView_Ascii()
/petsc/src/vec/vec/utils/
H A Dvsection.c195 …tscSection sectionGlobal, Vec v, PetscInt field, PetscInt pStart, PetscInt pEnd, IS *is, Vec *subv) in PetscSectionGetField_Internal() argument
202 for (p = pStart; p < pEnd; ++p) { in PetscSectionGetField_Internal()
210 for (p = pStart; p < pEnd; ++p) { in PetscSectionGetField_Internal()
233 …tscSection sectionGlobal, Vec v, PetscInt field, PetscInt pStart, PetscInt pEnd, IS *is, Vec *subv) in PetscSectionRestoreField_Internal() argument
259 PetscInt Nf, f, pStart, pEnd; in PetscSectionVecNorm() local
269 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionVecNorm()
274 PetscCall(PetscSectionGetField_Internal(s, gs, x, f, pStart, pEnd, &is, &subv)); in PetscSectionVecNorm()
276 PetscCall(PetscSectionRestoreField_Internal(s, gs, x, f, pStart, pEnd, &is, &subv)); in PetscSectionVecNorm()
/petsc/src/snes/utils/libceed/
H A Ddmplexsnesceed.c32 PetscInt pStart, pEnd, p, maxDof; in DMPlexSNESComputeResidualCEED() local
38 PetscCall(PetscSectionGetChart(section, &pStart, &pEnd)); in DMPlexSNESComputeResidualCEED()
41 …for (p = pStart; p < pEnd; ++p) PetscCall(VecSetValuesSection(locFbc, section, p, zeroes, INSERT_B… in DMPlexSNESComputeResidualCEED()
/petsc/src/dm/label/
H A Ddmlabel.c45 (*label)->pEnd = -1; in DMLabelCreate()
105pEnd), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Label point %" PetscInt_FMT " is not in [%" Pet… in DMLabelMakeValid_Private()
431 …dex has been calculated in [%" PetscInt_FMT ", %" PetscInt_FMT ")\n", label->pStart, label->pEnd)); in DMLabelView_Concrete_Ascii()
536 label->pEnd = -1; in DMLabelReset()
620 (*labelnew)->pEnd = -1; in DMLabelDuplicate()
750 PetscInt pStart = PETSC_INT_MAX, pEnd = -1, v; in DMLabelComputeIndex() local
764 pEnd = PetscMax(point + 1, pEnd); in DMLabelComputeIndex()
769 label->pEnd = pEnd; in DMLabelComputeIndex()
770 PetscCall(DMLabelCreateIndex(label, label->pStart, label->pEnd)); in DMLabelComputeIndex()
788 PetscErrorCode DMLabelCreateIndex(DMLabel label, PetscInt pStart, PetscInt pEnd) in DMLabelCreateIndex() argument
[all …]

12345