Skip to content

Commit

Permalink
enforce load balance at start step
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Mar 29, 2024
1 parent 6e8995e commit bad7b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Parallelization/WarpXRegrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ WarpX::LoadBalance ()
if ((load_balance_efficiency_ratio_threshold > 0.0))
{
doLoadBalance = (proposedEfficiency > load_balance_efficiency_ratio_threshold*currentEfficiency);
if (getistep(0) == 100) {
if ((getistep(0)+1) == 100) {
doLoadBalance = true;
}
}
Expand Down

0 comments on commit bad7b50

Please sign in to comment.