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

Do not use pow() needlessly

parent 05a6649c
No related branches found
No related tags found
No related merge requests found
......@@ -136,7 +136,7 @@ int main(int argc, char *argv[]) {
auto const solver_tolerance = parset.get<double>("solver.tolerance");
auto const refinements = parset.get<size_t>("grid.refinements");
size_t const refinement_factor = std::pow(2, refinements);
size_t const refinement_factor = 1 << refinements;
auto const verbose = parset.get<bool>("verbose");
Solver::VerbosityMode const verbosity =
......
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