Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix types #12947

Merged
merged 1 commit into from
Nov 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions source/distributed/tria.cc
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ namespace
const typename internal::p4est::types<2>::quadrant_coord
quad_length_on_level)
{
constexpr int dim = 2;
constexpr unsigned int dim = 2;

// p4est for some reason always needs double vxyz[3] as last argument to
// quadrant_coord_to_vertex
Expand All @@ -929,7 +929,7 @@ namespace
// A lambda to avoid code duplication.
const auto copy_vertex = [&](unsigned int vertex_index) -> void {
// copy into local struct
for (size_t d = 0; d < dim; ++d)
for (unsigned int d = 0; d < dim; ++d)
{
cell_vertices[vertex_index](d) = corner_point[d];
// reset
Expand Down Expand Up @@ -1004,14 +1004,14 @@ namespace
const typename internal::p4est::types<3>::quadrant_coord
quad_length_on_level)
{
constexpr int dim = 3;
constexpr unsigned int dim = 3;

double corner_point[dim] = {0};

// A lambda to avoid code duplication.
auto copy_vertex = [&](unsigned int vertex_index) -> void {
// copy into local struct
for (size_t d = 0; d < dim; ++d)
for (unsigned int d = 0; d < dim; ++d)
{
cell_vertices[vertex_index](d) = corner_point[d];
// reset
Expand Down