Lines Matching refs:coordsIn
3183 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()
3450 coordsIn[0 * embedDim + 0] = -R; in DMPlexCreateSphereMesh_Internal()
3451 coordsIn[0 * embedDim + 1] = R; in DMPlexCreateSphereMesh_Internal()
3452 coordsIn[0 * embedDim + 2] = -R; in DMPlexCreateSphereMesh_Internal()
3453 coordsIn[1 * embedDim + 0] = R; in DMPlexCreateSphereMesh_Internal()
3454 coordsIn[1 * embedDim + 1] = R; in DMPlexCreateSphereMesh_Internal()
3455 coordsIn[1 * embedDim + 2] = -R; in DMPlexCreateSphereMesh_Internal()
3456 coordsIn[2 * embedDim + 0] = R; in DMPlexCreateSphereMesh_Internal()
3457 coordsIn[2 * embedDim + 1] = -R; in DMPlexCreateSphereMesh_Internal()
3458 coordsIn[2 * embedDim + 2] = -R; in DMPlexCreateSphereMesh_Internal()
3459 coordsIn[3 * embedDim + 0] = -R; in DMPlexCreateSphereMesh_Internal()
3460 coordsIn[3 * embedDim + 1] = -R; in DMPlexCreateSphereMesh_Internal()
3461 coordsIn[3 * embedDim + 2] = -R; in DMPlexCreateSphereMesh_Internal()
3462 coordsIn[4 * embedDim + 0] = -R; in DMPlexCreateSphereMesh_Internal()
3463 coordsIn[4 * embedDim + 1] = R; in DMPlexCreateSphereMesh_Internal()
3464 coordsIn[4 * embedDim + 2] = R; in DMPlexCreateSphereMesh_Internal()
3465 coordsIn[5 * embedDim + 0] = R; in DMPlexCreateSphereMesh_Internal()
3466 coordsIn[5 * embedDim + 1] = R; in DMPlexCreateSphereMesh_Internal()
3467 coordsIn[5 * embedDim + 2] = R; in DMPlexCreateSphereMesh_Internal()
3468 coordsIn[6 * embedDim + 0] = -R; in DMPlexCreateSphereMesh_Internal()
3469 coordsIn[6 * embedDim + 1] = -R; in DMPlexCreateSphereMesh_Internal()
3470 coordsIn[6 * embedDim + 2] = R; in DMPlexCreateSphereMesh_Internal()
3471 coordsIn[7 * embedDim + 0] = R; in DMPlexCreateSphereMesh_Internal()
3472 coordsIn[7 * embedDim + 1] = -R; in DMPlexCreateSphereMesh_Internal()
3473 coordsIn[7 * embedDim + 2] = R; in DMPlexCreateSphereMesh_Internal()
3530 PetscCall(PetscCalloc1(numVerts * embedDim, &coordsIn)); in DMPlexCreateSphereMesh_Internal()
3537 for (d = 0; d < embedDim; ++d) coordsIn[i * embedDim + d] = s[d] * vertexA[d]; in DMPlexCreateSphereMesh_Internal()
3546 …for (d = 0; d < embedDim; ++d) coordsIn[i * embedDim + d] = s[(d + p) % embedDim] * vertexB[(d + p… in DMPlexCreateSphereMesh_Internal()
3555 …for (d = 0; d < embedDim; ++d) coordsIn[i * embedDim + d] = s[evenPerm[p][d]] * vertexC[evenPerm[p… in DMPlexCreateSphereMesh_Internal()
3567 …if (PetscAbsReal(DiffNormReal(embedDim, &coordsIn[i * embedDim], &coordsIn[j * embedDim]) - edgeLe… in DMPlexCreateSphereMesh_Internal()
3608 …coordsIn[j * embedDim + e] - coordsIn[i * embedDim + e]) * (coordsIn[k * embedDim + f] - coordsIn[… in DMPlexCreateSphereMesh_Internal()
3613 if (DotReal(embedDim, normal, &coordsIn[i * embedDim]) < 0) { in DMPlexCreateSphereMesh_Internal()
3652 for (d = 0; d < embedDim; ++d) coords[v * embedDim + d] = coordsIn[v * embedDim + d]; in DMPlexCreateSphereMesh_Internal()
3656 PetscCall(PetscFree(coordsIn)); in DMPlexCreateSphereMesh_Internal()