Skip to content
Snippets Groups Projects
Commit 53cb7ff4 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Fix warning: middle may be used uninitialized

parent ecb5af59
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ class SampleFunctional {
}
double m = l / 2 + r / 2;
SmallVector middle;
SmallVector middle = SmallVector(0.0);
for (unsigned int count = 0; count < iterations; ++count) {
Dune::dverb << "now at m = " << m << std::endl;
Dune::dverb << "Value of J here: " << operator()(x + middle) << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment