Skip to content

Commit

Permalink
hack to force LB at first LB time
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Mar 20, 2024
1 parent 24f1904 commit e38355e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Parallelization/WarpXRegrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ WarpX::LoadBalance ()
if ((load_balance_efficiency_ratio_threshold > 0.0))
{
doLoadBalance = (proposedEfficiency > load_balance_efficiency_ratio_threshold*currentEfficiency);
if (getistep(0) == get_load_balance_intervals()) {
doLoadBalance = true;
}
}
amrex::Print() << " doloadbalance : " << doLoadBalance << "\n";
amrex::Print() << proposedEfficiency << "\n";
Expand Down

0 comments on commit e38355e

Please sign in to comment.