Skip to content

Commit

Permalink
use exception-safe way to temporarily change EWSB loop order
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Dec 12, 2016
1 parent 7386f7c commit 8dc8564
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions templates/mass_eigenstates.cpp.in
Expand Up @@ -368,11 +368,9 @@ int CLASSNAME::solve_ewsb_iteratively(unsigned loop_order)
{
// temporarily set `ewsb_loop_order' to `loop_order' and do
// iteration
const unsigned old_loop_order = ewsb_loop_order;
const auto save_loop_order_raii = make_raii_save(ewsb_loop_order);
ewsb_loop_order = loop_order;
const int status = solve_ewsb_iteratively();
ewsb_loop_order = old_loop_order;
return status;
return solve_ewsb_iteratively();
}


Expand Down

0 comments on commit 8dc8564

Please sign in to comment.