Home
last modified time | relevance | path

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

/petsc/src/dm/impls/plex/
H A Dplexcreate.c3183 PetscReal *coordsIn; in DMPlexCreateSphereMesh_Internal() local
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()
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()
3291 …l[d] += epsilon[d][e][f] * (coordsIn[j * embedDim + e] - coordsIn[i * embedDim + e]) * (coordsIn[k… in DMPlexCreateSphereMesh_Internal()
3294 if (DotReal(embedDim, normal, &coordsIn[i * embedDim]) < 0) { in DMPlexCreateSphereMesh_Internal()
3448 PetscCall(PetscCalloc1(numVerts * embedDim, &coordsIn)); in DMPlexCreateSphereMesh_Internal()
[all …]
H A Dplexfluent.c698 PetscScalar *coordsIn = NULL; in DMPlexCreateFluent() local
724 …PetscCheck(!coordsIn, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Currently no support for multiple coo… in DMPlexCreateFluent()
725 coordsIn = (PetscScalar *)s.data; in DMPlexCreateFluent()
958 if (rank == 0 && coordsIn) { in DMPlexCreateFluent()
960 for (PetscInt d = 0; d < dim; ++d) coords[v * dim + d] = coordsIn[v * dim + d]; in DMPlexCreateFluent()
972 PetscCall(PetscFree(coordsIn)); in DMPlexCreateFluent()