Home
last modified time | relevance | path

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

/petsc/src/dm/impls/plex/
H A Dplexgeometry.c297 PetscScalar tcoords[6] = {0., 0., 0., 0., 0., 0.}; in DMPlexGetPlaneQuadIntersection_Internal() local
310 for (PetscInt d = 0; d < cdim; ++d) tcoords[v * cdim + d] = coords[vertsA[v] * cdim + d]; in DMPlexGetPlaneQuadIntersection_Internal()
311 …PetscCall(DMPlexGetPlaneSimplexIntersection_Coords_Internal(dm, dim, cdim, tcoords, p, normal, pos… in DMPlexGetPlaneQuadIntersection_Internal()
313 for (PetscInt d = 0; d < cdim; ++d) tcoords[v * cdim + d] = coords[vertsB[v] * cdim + d]; in DMPlexGetPlaneQuadIntersection_Internal()
314 …PetscCall(DMPlexGetPlaneSimplexIntersection_Coords_Internal(dm, dim, cdim, tcoords, p, normal, pos… in DMPlexGetPlaneQuadIntersection_Internal()
328 PetscScalar tcoords[12] = {0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.}; in DMPlexGetPlaneHexIntersection_Internal() local
346 for (PetscInt d = 0; d < cdim; ++d) tcoords[v * cdim + d] = coords[vertsA[v] * cdim + d]; in DMPlexGetPlaneHexIntersection_Internal()
347 …PetscCall(DMPlexGetPlaneSimplexIntersection_Coords_Internal(dm, dim, cdim, tcoords, p, normal, pos… in DMPlexGetPlaneHexIntersection_Internal()
350 for (PetscInt d = 0; d < cdim; ++d) tcoords[v * cdim + d] = coords[vertsB[v] * cdim + d]; in DMPlexGetPlaneHexIntersection_Internal()
351 …PetscCall(DMPlexGetPlaneSimplexIntersection_Coords_Internal(dm, dim, cdim, tcoords, p, normal, pos… in DMPlexGetPlaneHexIntersection_Internal()
[all …]
H A Dplex.c1145 double tcoords[3]; in DMPlexView_Ascii() local
1278 tcoords[d] = (double)(scale * PetscRealPart(coords[off + d])); in DMPlexView_Ascii()
1279 tcoords[d] = PetscAbs(tcoords[d]) < 1e-10 ? 0.0 : tcoords[d]; in DMPlexView_Ascii()
1283 PetscReal tmp = tcoords[1]; in DMPlexView_Ascii()
1284 tcoords[1] = tcoords[2]; in DMPlexView_Ascii()
1285 tcoords[2] = -tmp; in DMPlexView_Ascii()
1289 PetscCall(PetscViewerASCIISynchronizedPrintf(viewer, "%g", tcoords[d])); in DMPlexView_Ascii()
1327 tcoords[d] = (double)(scale * PetscRealPart(coords[offA + d] + coords[offB + d]) / 2); in DMPlexView_Ascii()
1328 tcoords[d] = PetscAbs(tcoords[d]) < 1e-10 ? 0.0 : tcoords[d]; in DMPlexView_Ascii()
1332 PetscReal tmp = tcoords[1]; in DMPlexView_Ascii()
[all …]