Skip to content
Snippets Groups Projects
Commit 15a3edb3 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Few C++-17 magic

parent af202ad3
Branches
Tags
No related merge requests found
...@@ -309,9 +309,7 @@ private: ...@@ -309,9 +309,7 @@ private:
for (const auto& face_cells_vector : face_cells_map) { for (const auto& face_cells_vector : face_cells_map) {
const auto& cells_vector = face_cells_vector.second; const auto& cells_vector = face_cells_vector.second;
for (unsigned short lj=0; lj<cells_vector.size(); ++lj) { for (unsigned short lj=0; lj<cells_vector.size(); ++lj) {
unsigned int cell_number; const auto& [cell_number, cell_local_face, reversed] = cells_vector[lj];
unsigned short cell_local_face;
std::tie(cell_number, cell_local_face, std::ignore) = cells_vector[lj];
cell_faces(cell_number,cell_local_face) = l; cell_faces(cell_number,cell_local_face) = l;
} }
++l; ++l;
...@@ -325,10 +323,7 @@ private: ...@@ -325,10 +323,7 @@ private:
for (const auto& face_cells_vector : face_cells_map) { for (const auto& face_cells_vector : face_cells_map) {
const auto& cells_vector = face_cells_vector.second; const auto& cells_vector = face_cells_vector.second;
for (unsigned short lj=0; lj<cells_vector.size(); ++lj) { for (unsigned short lj=0; lj<cells_vector.size(); ++lj) {
unsigned int cell_number; const auto& [cell_number, cell_local_face, reversed] = cells_vector[lj];
unsigned short cell_local_face;
bool reversed;
std::tie(cell_number, cell_local_face, reversed) = cells_vector[lj];
cell_faces_is_reversed(cell_number,cell_local_face) = reversed; cell_faces_is_reversed(cell_number,cell_local_face) = reversed;
} }
++l; ++l;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment