| /petsc/src/binding/petsc4py/docs/ipynb/ |
| H A D | dmplex.ipynb | 91 …single array called a chart. Each entity in the chart is called a point. (At this point it would b… 96 …"The *cone* of a point consists of the points of a dimension lower which make up that entity. So w… 108 "point = 0 \tcone = [13 14 15 16]\n", 109 "point = 1 \tcone = [17 18 19 14]\n", 110 "point = 2 \tcone = [15 20 21 22]\n", 111 "point = 3 \tcone = [19 23 24 20]\n", 112 "point = 4 \tcone = []\n", 113 "point = 5 \tcone = []\n", 114 "point = 6 \tcone = []\n", 115 "point = 7 \tcone = []\n", [all …]
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | Section.pyx | 101 Offsets are based on the number of degrees of freedom for each point. 243 The range is [pStart, pEnd), i.e., from the first point to one past the 244 last point. 260 The range is [pStart, pEnd), i.e., from the first point to one past the 261 last point. 266 The first point. 268 One past the last point. 311 def getDof(self, point: int) -> int: 312 """Return the number of degrees of freedom for a given point. 321 point [all …]
|
| H A D | DMLabel.pyx | 99 The point IS. 101 The point value. 112 def setValue(self, point: int, value: int) -> None: 113 """Set the value a label assigns to a point. 123 point 124 The point. 126 The point value. 133 cdef PetscInt cpoint = asInt(point) 137 def getValue(self, point: int) -> int: 138 """Return the value a label assigns to a point. [all …]
|
| H A D | DMPlex.pyx | 440 a subcell that contains that point in its closure 474 The first mesh point. 495 The first mesh point. 509 """Return the number of in-edges for this point in the DAG. 516 The point, which must lie in the chart set with `DMPlex.setChart`. 533 """Set the number of in-edges for this point in the DAG. 540 The point, which must lie in the chart set with `DMPlex.setChart`. 542 The cone size for point ``p``. 558 """Return the points on the in-edges for this point in the DAG. 565 The point, which must lie in the chart set with `DMPlex.setChart`. [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexpoint.c | 23 PetscErrorCode DMPlexGetPointLocal(DM dm, PetscInt point, PetscInt *start, PetscInt *end) in DMPlexGetPointLocal() argument 31 PetscCall(DMGetLocalOffset_Private(dm, point, &s, &e)); in DMPlexGetPointLocal() 62 PetscErrorCode DMPlexPointLocalRead(DM dm, PetscInt point, const PetscScalar *array, void *ptr) in DMPlexPointLocalRead() argument 70 PetscCall(DMGetLocalOffset_Private(dm, point, &start, &end)); in DMPlexPointLocalRead() 100 PetscErrorCode DMPlexPointLocalRef(DM dm, PetscInt point, PetscScalar *array, void *ptr) in DMPlexPointLocalRef() argument 108 PetscCall(DMGetLocalOffset_Private(dm, point, &start, &end)); in DMPlexPointLocalRef() 134 PetscErrorCode DMPlexGetPointLocalField(DM dm, PetscInt point, PetscInt field, PetscInt *start, Pet… in DMPlexGetPointLocalField() argument 142 PetscCall(DMGetLocalFieldOffset_Private(dm, point, field, &s, &e)); in DMPlexGetPointLocalField() 166 PetscErrorCode DMPlexPointLocalFieldRead(DM dm, PetscInt point, PetscInt field, const PetscScalar *… in DMPlexPointLocalFieldRead() argument 174 PetscCall(DMGetLocalFieldOffset_Private(dm, point, field, &start, &end)); in DMPlexPointLocalFieldRead() [all …]
|
| H A D | plexindices.c | 24 PetscInt pStart, pEnd, sStart, sEnd, point, clSize; in DMPlexCreateClosureIndex() local 34 for (point = pStart; point < pEnd; ++point) { in DMPlexCreateClosureIndex() 37 PetscCall(DMPlexGetTransitiveClosure(dm, point, PETSC_TRUE, &numPoints, &points)); in DMPlexCreateClosureIndex() 44 PetscCall(DMPlexRestoreTransitiveClosure(dm, point, PETSC_TRUE, &numPoints, &points)); in DMPlexCreateClosureIndex() 45 PetscCall(PetscSectionSetDof(closureSection, point, cldof)); in DMPlexCreateClosureIndex() 50 for (point = pStart; point < pEnd; ++point) { in DMPlexCreateClosureIndex() 53 PetscCall(PetscSectionGetDof(closureSection, point, &cldof)); in DMPlexCreateClosureIndex() 54 PetscCall(PetscSectionGetOffset(closureSection, point, &cloff)); in DMPlexCreateClosureIndex() 55 PetscCall(DMPlexGetTransitiveClosure(dm, point, PETSC_TRUE, &numPoints, &points)); in DMPlexCreateClosureIndex() 66 PetscCall(DMPlexRestoreTransitiveClosure(dm, point, PETSC_TRUE, &numPoints, &points)); in DMPlexCreateClosureIndex()
|
| H A D | plexsubmesh.c | 343 const PetscInt point = points[p]; in DMPlexLabelAddCells() local 349 PetscCall(DMPlexGetCellType(dm, point, &ct)); in DMPlexLabelAddCells() 350 PetscCall(DMPlexGetPointHeight(dm, point, &h)); in DMPlexLabelAddCells() 475 PetscInt point = points[p]; in DMPlexLabelClearCells() local 477 if (point >= cStart && point < cEnd) PetscCall(DMLabelClearValue(label, point, values[v])); in DMPlexLabelClearCells() 2037 const PetscInt point = points[p]; in CheckFaultEdge_Private() local 2041 PetscCall(DMPlexGetSupportSize(dm, point, &supportSize)); in CheckFaultEdge_Private() 2043 PetscCall(DMPlexGetSupport(dm, point, &support)); in CheckFaultEdge_Private() 2054 PetscCall(DMPlexGetTransitiveClosure(dm, point, PETSC_TRUE, &Ncl, &closure)); in CheckFaultEdge_Private() 2064 …etscInt_FMT ":%" PetscInt_FMT ", %" PetscInt_FMT ":%" PetscInt_FMT ")\n", point, support[0], valA,… in CheckFaultEdge_Private() [all …]
|
| /petsc/src/vec/is/section/interface/ftn-custom/ |
| H A D | zvsectionisf90.c | 16 PETSC_EXTERN void petscsectiongetconstraintindices_(PetscSection *s, PetscInt *point, F90Array1d *i… in petscsectiongetconstraintindices_() argument 21 *ierr = PetscSectionGetConstraintIndices(*s, *point, &idx); in petscsectiongetconstraintindices_() 23 *ierr = PetscSectionGetConstraintDof(*s, *point, &n); in petscsectiongetconstraintindices_() 28 PETSC_EXTERN void petscsectionrestoreconstraintindices_(PetscSection *s, PetscInt *point, F90Array1… in petscsectionrestoreconstraintindices_() argument 33 PETSC_EXTERN void petscsectiongetfieldconstraintindices_(PetscSection *s, PetscInt *point, PetscInt… in petscsectiongetfieldconstraintindices_() argument 38 *ierr = PetscSectionGetFieldConstraintIndices(*s, *point, *field, &idx); in petscsectiongetfieldconstraintindices_() 40 *ierr = PetscSectionGetFieldConstraintDof(*s, *point, *field, &n); in petscsectiongetfieldconstraintindices_() 45 PETSC_EXTERN void petscsectionrestorefieldconstraintindices_(PetscSection *s, PetscInt *point, Pets… in petscsectionrestorefieldconstraintindices_() argument
|
| /petsc/doc/manual/ |
| H A D | section.md | 23 A **point** is a `PetscInt` that serves as an abstract "index" into arrays from iterable sets, such… 26 …(ndof, offset)`, where `ndof` is the number of values stored at that mesh point and `offset` is th… 27 So given the tuple for a mesh point, its data can be accessed by `array[offset + d]`, where `d` in … 38 …g the `(ndof, offset)` tuple for each mesh point generally first starts with setting the `ndof` fo… 39 …iates a set of degrees of freedom (dof), (a small space $\{e_k\}\ 0 < k < ndof$), with every point. 40 If `ndof` is not set for a mesh point, it is assumed to be 0. 42 The offset for each mesh point is usually set automatically by `PetscSectionSetUp()`. 43 This will concatenate each mesh point's dofs together in the order of the mesh points. 46 Alternatively, the offset for each mesh point can be set manually by `PetscSectionSetOffset()`, tho… 55 2. Specify the number of dofs per point with `PetscSectionSetDof()`. Any values not set will be zer… [all …]
|
| /petsc/src/dm/impls/swarm/tests/output/ |
| H A D | ex1_swarm_migrate_hash_tensor_permutation.out | 3 Basic point insertion check... 5 Basic point insertion check passes. 6 Rank boundary point insertion check... 8 Rank boundary point insertion check passes.
|
| H A D | ex1_swarm_migrate_vec_hip_hash.out | 3 Basic point insertion check... 5 Basic point insertion check passes. 6 Rank boundary point insertion check... 8 Rank boundary point insertion check passes.
|
| H A D | ex1_swarm_migrate_hash.out | 3 Basic point insertion check... 5 Basic point insertion check passes. 6 Rank boundary point insertion check... 8 Rank boundary point insertion check passes.
|
| H A D | ex1_swarm_migrate_vec_hip_hash_tensor_permutation.out | 3 Basic point insertion check... 5 Basic point insertion check passes. 6 Rank boundary point insertion check... 8 Rank boundary point insertion check passes.
|
| H A D | ex1_swarm_migrate_scan.out | 3 Basic point insertion check... 5 Basic point insertion check passes. 6 Rank boundary point insertion check... 8 Rank boundary point insertion check passes.
|
| H A D | ex1_swarm_migrate_scan_tensor_permutation.out | 3 Basic point insertion check... 5 Basic point insertion check passes. 6 Rank boundary point insertion check... 8 Rank boundary point insertion check passes.
|
| H A D | ex1_swarm_migrate_vec_hip_scan.out | 3 Basic point insertion check... 5 Basic point insertion check passes. 6 Rank boundary point insertion check... 8 Rank boundary point insertion check passes.
|
| /petsc/include/petsc/private/ |
| H A D | dmimpl.h | 425 static inline PetscErrorCode DMGetLocalOffset_Private(DM dm, PetscInt point, PetscInt *start, Petsc… in DMGetLocalOffset_Private() argument 434 PetscCall(PetscSectionGetOffset(dm->localSection, point, start)); in DMGetLocalOffset_Private() 435 PetscCall(PetscSectionGetDof(dm->localSection, point, &dof)); in DMGetLocalOffset_Private() 441 *start = s->atlasOff[point - s->pStart]; in DMGetLocalOffset_Private() 442 *end = *start + s->atlasDof[point - s->pStart]; in DMGetLocalOffset_Private() 448 static inline PetscErrorCode DMGetLocalFieldOffset_Private(DM dm, PetscInt point, PetscInt field, P… in DMGetLocalFieldOffset_Private() argument 456 PetscCall(PetscSectionGetFieldOffset(dm->localSection, point, field, start)); in DMGetLocalFieldOffset_Private() 457 PetscCall(PetscSectionGetFieldDof(dm->localSection, point, field, &dof)); in DMGetLocalFieldOffset_Private() 463 *start = s->atlasOff[point - s->pStart]; in DMGetLocalFieldOffset_Private() 464 *end = *start + s->atlasDof[point - s->pStart]; in DMGetLocalFieldOffset_Private() [all …]
|
| /petsc/src/dm/impls/plex/tests/output/ |
| H A D | ex98_0.out | 15 point 11 16 point 12 17 point 14 19 point 8 20 point 15 21 point 16
|
| H A D | ex98f90_0.out | 15 point 11 16 point 12 17 point 14 19 point 8 20 point 15 21 point 16
|
| /petsc/src/vec/vec/utils/ftn-custom/ |
| H A D | zvsectionf90.c | 13 PETSC_EXTERN void vecgetvaluessection_(Vec *v, PetscSection *section, PetscInt *point, F90Array1d *… in vecgetvaluessection_() argument 18 *__ierr = VecGetValuesSection(*v, *section, *point, &fa); in vecgetvaluessection_() 20 *__ierr = PetscSectionGetDof(*section, *point, &len); in vecgetvaluessection_() 25 PETSC_EXTERN void vecrestorevaluessection_(Vec *v, PetscSection *section, PetscInt *point, F90Array… in vecrestorevaluessection_() argument
|
| /petsc/src/vec/ftn-mod/ |
| H A D | petscis.h90 | 10 subroutine PetscSectionRestoreConstraintIndices(s, point, indices, ierr) 13 PetscInt point 19 subroutine PetscSectionRestoreFieldConstraintIndices(s, point, field, indices, ierr) 23 PetscInt :: point
|
| /petsc/src/dm/dt/tests/ |
| H A D | ex9.c | 37 PetscReal *point; in testDerivativesLegendre() local 103 PetscCall(PetscMalloc1(dim, &point)); in testDerivativesLegendre() 104 for (i = 0; i < dim; i++) PetscCall(PetscRandomGetValueReal(rand, &point[i])); in testDerivativesLegendre() 106 PetscReal val = point[i]; in testDerivativesLegendre() 109 for (j = 0; j < i; j++) point[j] = (point[j] + 1.) * (1. - val) * 0.5 - 1.; in testDerivativesLegendre() 114 PetscCall(PetscDTPKDEvalJet(dim, 1, point, deg, k, pkd_jet_basis)); in testDerivativesLegendre() 125 PetscCall(PetscDTJacobiEvalJet(0., 0., 1, &point[i], deg, k, D[i])); in testDerivativesLegendre() 155 PetscCall(PetscFree(point)); in testDerivativesLegendre()
|
| /petsc/src/dm/impls/plex/ftn-custom/ |
| H A D | zplexf90.c | 126 PETSC_EXTERN void dmplexvecgetclosure_(DM *dm, PetscSection *section, Vec *x, PetscInt *point, Pets… in dmplexvecgetclosure_() argument 132 *ierr = DMPlexVecGetClosure(*dm, *section, *x, *point, &n, &v); in dmplexvecgetclosure_() 138 PETSC_EXTERN void dmplexvecrestoreclosure_(DM *dm, PetscSection *section, Vec *v, PetscInt *point, … in dmplexvecrestoreclosure_() argument 144 *ierr = DMPlexVecRestoreClosure(*dm, *section, *v, *point, NULL, &array); in dmplexvecrestoreclosure_() 150 …dices_(DM *dm, PetscSection *section, PetscSection *idxSection, PetscInt *point, PetscBool *useClP… in dmplexgetclosureindices_() argument 156 …TER(valPtr)) *ierr = DMPlexGetClosureIndices(*dm, *section, *idxSection, *point, *useClPerm, numIn… in dmplexgetclosureindices_() 157 …else *ierr = DMPlexGetClosureIndices(*dm, *section, *idxSection, *point, *useClPerm, numIndices, &… in dmplexgetclosureindices_() 164 …dices_(DM *dm, PetscSection *section, PetscSection *idxSection, PetscInt *point, PetscBool *useClP… in dmplexrestoreclosureindices_() argument 175 …*ierr = DMPlexRestoreClosureIndices(*dm, *section, *idxSection, *point, *useClPerm, numIndices, &i… in dmplexrestoreclosureindices_() 176 …} else *ierr = DMPlexRestoreClosureIndices(*dm, *section, *idxSection, *point, *useClPerm, numIndi… in dmplexrestoreclosureindices_()
|
| /petsc/src/dm/label/impls/ephemeral/ |
| H A D | dmlabeleph.c | 31 const PetscInt point = opoints[op]; in DMLabelEphemeralComputeStratumSize_Private() local 37 PetscCall(DMPlexGetCellType(dm, point, &ct)); in DMLabelEphemeralComputeStratumSize_Private() 38 … PetscCall(DMPlexTransformCellTransform(tr, ct, point, NULL, &Nct, &rct, &rsize, &rcone, &rornt)); in DMLabelEphemeralComputeStratumSize_Private() 68 const PetscInt point = opoints[op]; in DMLabelGetStratumIS_Ephemeral() local 74 PetscCall(DMPlexGetCellType(dm, point, &ct)); in DMLabelGetStratumIS_Ephemeral() 75 … PetscCall(DMPlexTransformCellTransform(tr, ct, point, NULL, &Nct, &rct, &rsize, &rcone, &rornt)); in DMLabelGetStratumIS_Ephemeral() 78 PetscCall(DMPlexTransformGetTargetPoint(tr, ct, rct[n], point, r, &pNew)); in DMLabelGetStratumIS_Ephemeral()
|
| /petsc/src/vec/is/section/interface/ |
| H A D | section.c | 941 PetscErrorCode PetscSectionGetDof(PetscSection s, PetscInt point, PetscInt *numDof) in PetscSectionGetDof() argument 946 …point >= s->pStart && point < s->pEnd, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section point %… in PetscSectionGetDof() 947 *numDof = s->atlasDof[point - s->pStart]; in PetscSectionGetDof() 968 PetscErrorCode PetscSectionSetDof(PetscSection s, PetscInt point, PetscInt numDof) in PetscSectionSetDof() argument 972 …point >= s->pStart && point < s->pEnd, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section point %… in PetscSectionSetDof() 973 s->atlasDof[point - s->pStart] = numDof; in PetscSectionSetDof() 995 PetscErrorCode PetscSectionAddDof(PetscSection s, PetscInt point, PetscInt numDof) in PetscSectionAddDof() argument 999 …point >= s->pStart && point < s->pEnd, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section point %… in PetscSectionAddDof() 1001 s->atlasDof[point - s->pStart] += numDof; in PetscSectionAddDof() 1023 PetscErrorCode PetscSectionGetFieldDof(PetscSection s, PetscInt point, PetscInt field, PetscInt *nu… in PetscSectionGetFieldDof() argument [all …]
|