Skip to content
Snippets Groups Projects
Commit 132aeea1 authored by Tom Fischer's avatar Tom Fischer
Browse files

[MeshLib] Fixed unused variable warnings.

parent a5bd75e3
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,
std::vector<Node*> nodes;
nodes.reserve(n_x_nodes * n_y_nodes);
for (std::size_t i = 0, node_id = 0; i < n_y_nodes; i++)
for (std::size_t i = 0; i < n_y_nodes; i++)
{
const double y_offset (origin[1] + cell_size * i);
for (std::size_t j = 0; j < n_x_nodes; j++)
......@@ -130,7 +130,7 @@ Mesh* MeshGenerator::generateRegularHexMesh(const unsigned n_x_cells,
std::vector<Node*> nodes;
nodes.reserve(n_x_nodes * n_y_nodes * n_z_nodes);
for (std::size_t i = 0, node_id = 0; i < n_z_nodes; i++)
for (std::size_t i = 0; i < n_z_nodes; i++)
{
const double z_offset (origin[2] + cell_size * i);
for (std::size_t j = 0; j < n_y_nodes; j++)
......
......@@ -75,7 +75,6 @@ MeshLib::Mesh* MeshLayerMapper::CreateLayers(const MeshLib::Mesh &mesh, const st
}
// starting with 2nd layer create prism or hex elements connecting the last layer with the current one
const unsigned elem_offset (nElems * (layer_id-1));
if (layer_id > 0)
{
node_offset -= nNodes;
......@@ -150,7 +149,6 @@ int MeshLayerMapper::LayerMapping(MeshLib::Mesh &new_mesh, const std::string &ra
if (!isNodeOnRaster(*nodes[i], xDim, yDim))
{
// use either default value or elevation from layer above
const double new_elevation = (layer_id == 0) ? noDataReplacementValue : (*nodes[i-nNodesPerLayer])[2];
nodes[i]->updateCoordinates(coords[0], coords[1], noDataReplacementValue);
continue;
}
......@@ -191,7 +189,6 @@ int MeshLayerMapper::LayerMapping(MeshLib::Mesh &new_mesh, const std::string &ra
{
if (no_data_count == 4) // if there is absolutely no data just use the default value
{
const double new_elevation = (layer_id == 0) ? noDataReplacementValue : (*nodes[i-nNodesPerLayer])[2];
nodes[i]->updateCoordinates(coords[0], coords[1], noDataReplacementValue);
continue;
}
......
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