[Test] Remove unused variables and other compiler warnings

parent 3f208b9c
......@@ -59,7 +59,7 @@ std::multimap<std::string, double> get_parameter_map (const int index)
};
}
else {
throw std::runtime_error("Unknown index " + index);
throw std::runtime_error("Unknown index " + std::to_string(index));
}
}
......
......@@ -176,7 +176,7 @@ int main (int argc, char** argv)
const Dune::Dorie::FlowParameters<Traits<2>> const_param(inifile,
grid,
index_map);
Dune::Dorie::FlowParameters<Traits<2>> param(const_param);
Dune::Dorie::FlowParameters<Traits<2>> param(const_param); // deep copy
// perform the actual tests
test_new_parameters(const_param, grid);
......
......@@ -256,8 +256,8 @@ void test_parameter_manipulation (SoluteParameters& sparam,
auto parameters = par->parameters();
// modify all keys
for (auto [key,value] : parameters)
value = 0.;
for (auto it : parameters)
it->second = 0.;
{ // modify specific key
auto [begin,end] = parameters.equal_range("mol_diff");
......@@ -319,7 +319,7 @@ int main (int argc, char** argv)
const Dune::Dorie::SoluteParameters<Traits<2>> const_param(inifile,
grid,
index_map);
Dune::Dorie::SoluteParameters<Traits<2>> param(const_param);
Dune::Dorie::SoluteParameters<Traits<2>> param(const_param); // deep copy
// perform the actual tests
test_new_parameters(const_param, grid);
test_new_parameters(param, grid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment