Skip to content

Commit

Permalink
use log10() instead of log()/log(10) for efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Oct 7, 2015
1 parent 4be41ce commit 8b5fa4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/two_scale_convergence_tester_drbar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Convergence_tester_DRbar<Model<Two_scale> >::Convergence_tester_DRbar
, model(model_)
, last_iteration_model()
, it_count(0)
, max_it(static_cast<int>(-log(accuracy_goal_) / log(10.0) * 10))
, max_it(static_cast<int>(-log10(accuracy_goal_) * 10))
, accuracy_goal(accuracy_goal_)
, current_accuracy(std::numeric_limits<double>::infinity())
{
Expand Down

0 comments on commit 8b5fa4f

Please sign in to comment.