Lines Matching refs:embedDim

3179   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()
3288 for (d = 0; d < embedDim; ++d) { in DMPlexCreateSphereMesh_Internal()
3290 for (e = 0; e < embedDim; ++e) { in DMPlexCreateSphereMesh_Internal()
3291embedDim; ++f) normal[d] += epsilon[d][e][f] * (coordsIn[j * embedDim + e] - coordsIn[i * embedDim 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()
3543 for (p = 0; p < embedDim; ++p) { 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()
3576 for (PetscInt c = 0; c < numCells; c++) PetscCall(DMPlexSetConeSize(dm, c, embedDim)); in DMPlexCreateSphereMesh_Internal()
3603 for (d = 0; d < embedDim; ++d) { in DMPlexCreateSphereMesh_Internal()
3605 for (e = 0; e < embedDim; ++e) { in DMPlexCreateSphereMesh_Internal()
3606 for (f = 0; f < embedDim; ++f) { in DMPlexCreateSphereMesh_Internal()
3607 for (g = 0; g < embedDim; ++g) { in DMPlexCreateSphereMesh_Internal()
3608embedDim + e] - coordsIn[i * embedDim + e]) * (coordsIn[k * embedDim + f] - coordsIn[i * embedDim in DMPlexCreateSphereMesh_Internal()
3613 if (DotReal(embedDim, normal, &coordsIn[i * embedDim]) < 0) { in DMPlexCreateSphereMesh_Internal()
3637 PetscCall(PetscSectionSetFieldComponents(coordSection, 0, embedDim)); in DMPlexCreateSphereMesh_Internal()
3640 PetscCall(PetscSectionSetDof(coordSection, v, embedDim)); in DMPlexCreateSphereMesh_Internal()
3641 PetscCall(PetscSectionSetFieldDof(coordSection, v, 0, embedDim)); in DMPlexCreateSphereMesh_Internal()
3646 PetscCall(VecSetBlockSize(coordinates, embedDim)); in DMPlexCreateSphereMesh_Internal()
3652 for (d = 0; d < embedDim; ++d) coords[v * embedDim + d] = coordsIn[v * embedDim + d]; in DMPlexCreateSphereMesh_Internal()