Lines Matching +full:- +full:d
19 for (PetscInt d = 0; d < dE; ++d) norm += PetscSqr(PetscRealPart(mcoords[d])); in DMSnapToGeomModelBall() local
21 for (PetscInt d = 0; d < dE; ++d) gcoords[d] = mcoords[d] / norm; in DMSnapToGeomModelBall() local
23 for (PetscInt d = 0; d < dE; ++d) gcoords[d] = mcoords[d]; in DMSnapToGeomModelBall() local
39 for (PetscInt d = 0; d < dE - 1; ++d) norm += PetscSqr(PetscRealPart(mcoords[d])); in DMSnapToGeomModelCylinder() local
41 for (PetscInt d = 0; d < dE - 1; ++d) gcoords[d] = mcoords[d] * gmax[0] / norm; in DMSnapToGeomModelCylinder() local
42 gcoords[dE - 1] = mcoords[dE - 1]; in DMSnapToGeomModelCylinder()
44 for (PetscInt d = 0; d < dE; ++d) gcoords[d] = mcoords[d]; in DMSnapToGeomModelCylinder() local
50 DMGeomModelRegisterAll - Registers all of the geometry model methods in the `DM` package.
73 DMGeomModelRegister - Adds a geometry model to `DM`
78 + sname - name of a new user-defined geometry model
79 - fnc - geometry model function
92 -dm_geom_model my_geom_model
98 `DMGeomModelRegister()` may be called multiple times to add several user-defined generators
118 DMSetSnapToGeomModel - Choose a geometry model for this `DM`.
123 + dm - The `DM` object
124 - name - A geometry model name, or `NULL` for the default
136 if (!name && dm->ops->snaptogeommodel) PetscFunctionReturn(PETSC_SUCCESS); in DMSetSnapToGeomModel()
137 …PetscCall(PetscOptionsGetString(((PetscObject)dm)->options, ((PetscObject)dm)->prefix, "-dm_geom_m… in DMSetSnapToGeomModel()
151 PetscCall(PetscFunctionListFind(DMGeomModelList, name, &dm->ops->snaptogeommodel)); in DMSetSnapToGeomModel()
152 …m->ops->snaptogeommodel, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_OUTOFRANGE, "Geometry mod… in DMSetSnapToGeomModel()
157 …DMSnapToGeomModel - Given a coordinate point 'mcoords' on the mesh point 'p', return the closest c…
162 + dm - The `DMPLEX` object
163 . p - The mesh point
164 . dE - The coordinate dimension
165 - mcoords - A coordinate point lying on the mesh point
168 . gcoords - The closest coordinate point on the geometry model associated with 'p' to the given poi…
182 if (!dm->ops->snaptogeommodel) in DMSnapToGeomModel()
183 for (PetscInt d = 0; d < dE; ++d) gcoords[d] = mcoords[d]; in DMSnapToGeomModel() local