Home
last modified time | relevance | path

Searched refs:embedDim (Results 1 – 2 of 2) sorted by relevance

/petsc/src/dm/impls/plex/
H A Dplexcreate.c3179 const PetscInt embedDim = dim + 1; in DMPlexCreateSphereMesh_Internal() local
3200 for (PetscInt c = 0; c < numCells; c++) PetscCall(DMPlexSetConeSize(dm, c, embedDim)); in DMPlexCreateSphereMesh_Internal()
3211 PetscCall(PetscMalloc1(numVerts * embedDim, &coordsIn)); in DMPlexCreateSphereMesh_Internal()
3215 coordsIn[v * embedDim + 0] = PetscCosReal(rad); in DMPlexCreateSphereMesh_Internal()
3216 coordsIn[v * embedDim + 1] = PetscSinReal(rad); in DMPlexCreateSphereMesh_Internal()
3243 PetscCall(PetscCalloc1(numVerts * embedDim, &coordsIn)); in DMPlexCreateSphereMesh_Internal()
3245 for (PetscInt p = 0, i = 0; p < embedDim; ++p) { in DMPlexCreateSphereMesh_Internal()
3248 …for (d = 0; d < embedDim; ++d) coordsIn[i * embedDim + d] = s[(d + p) % embedDim] * vertex[(d + p)… in DMPlexCreateSphereMesh_Internal()
3259 …if (PetscAbsReal(DiffNormReal(embedDim, &coordsIn[i * embedDim], &coordsIn[j * embedDim]) - edgeLe… in DMPlexCreateSphereMesh_Internal()
3268 for (PetscInt c = 0; c < numCells; c++) PetscCall(DMPlexSetConeSize(dm, c, embedDim)); in DMPlexCreateSphereMesh_Internal()
[all …]
H A Dplexgeometry.c442 PetscInt embedDim; in DMPlexLocatePoint_Simplex_2D_Internal() local
445 PetscCall(DMGetCoordinateDim(dm, &embedDim)); in DMPlexLocatePoint_Simplex_2D_Internal()
447 for (PetscInt j = 0; j < embedDim; ++j) x[j] = PetscRealPart(point[j]); in DMPlexLocatePoint_Simplex_2D_Internal()
449 for (PetscInt j = 0; j < embedDim; ++j) xi[i] += invJ[i * embedDim + j] * (x[j] - v0[j]); in DMPlexLocatePoint_Simplex_2D_Internal()
458 const PetscInt embedDim = 2; in DMPlexClosestPoint_Simplex_2D_Internal() local
466 xi = invJ[0 * embedDim + 0] * (x - v0[0]) + invJ[0 * embedDim + 1] * (y - v0[1]); in DMPlexClosestPoint_Simplex_2D_Internal()
467 eta = invJ[1 * embedDim + 0] * (x - v0[0]) + invJ[1 * embedDim + 1] * (y - v0[1]); in DMPlexClosestPoint_Simplex_2D_Internal()
476 cpoint[0] = J[0 * embedDim + 0] * xi + J[0 * embedDim + 1] * eta + v0[0]; in DMPlexClosestPoint_Simplex_2D_Internal()
477 cpoint[1] = J[1 * embedDim + 0] * xi + J[1 * embedDim + 1] * eta + v0[1]; in DMPlexClosestPoint_Simplex_2D_Internal()
489 PetscInt crossings = 0, numCoords, embedDim; in DMPlexLocatePoint_Quad_2D_Linear_Internal() local
[all …]