Skip to content
Snippets Groups Projects
Commit a1cf19d1 authored by wenqing's avatar wenqing
Browse files

recovery two files that are corrected in one PR by Tom

parent 35f0a8b9
No related branches found
No related tags found
No related merge requests found
...@@ -79,7 +79,7 @@ Mesh* MeshGenerator::generateRegularQuadMesh(const unsigned n_x_cells, ...@@ -79,7 +79,7 @@ Mesh* MeshGenerator::generateRegularQuadMesh(const unsigned n_x_cells,
std::vector<Node*> nodes; std::vector<Node*> nodes;
nodes.reserve(n_x_nodes * n_y_nodes); nodes.reserve(n_x_nodes * n_y_nodes);
for (std::size_t i = 0; i < n_y_nodes; i++) for (std::size_t i = 0, node_id = 0; i < n_y_nodes; i++)
{ {
const double y_offset (origin[1] + cell_size * i); const double y_offset (origin[1] + cell_size * i);
for (std::size_t j = 0; j < n_x_nodes; j++) for (std::size_t j = 0; j < n_x_nodes; j++)
...@@ -130,7 +130,7 @@ Mesh* MeshGenerator::generateRegularHexMesh(const unsigned n_x_cells, ...@@ -130,7 +130,7 @@ Mesh* MeshGenerator::generateRegularHexMesh(const unsigned n_x_cells,
std::vector<Node*> nodes; std::vector<Node*> nodes;
nodes.reserve(n_x_nodes * n_y_nodes * n_z_nodes); nodes.reserve(n_x_nodes * n_y_nodes * n_z_nodes);
for (std::size_t i = 0; i < n_z_nodes; i++) for (std::size_t i = 0, node_id = 0; i < n_z_nodes; i++)
{ {
const double z_offset (origin[2] + cell_size * i); const double z_offset (origin[2] + cell_size * i);
for (std::size_t j = 0; j < n_y_nodes; j++) for (std::size_t j = 0; j < n_y_nodes; j++)
......
...@@ -77,8 +77,6 @@ class MeshLibTriLineMesh : public ::testing::Test ...@@ -77,8 +77,6 @@ class MeshLibTriLineMesh : public ::testing::Test
bool bool
elementIsNeigborOf(std::size_t const a, std::size_t const b) const elementIsNeigborOf(std::size_t const a, std::size_t const b) const
{ {
(void)a; // Avoid GCC warning
(void)b;
return false; return false;
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment