aboutsummaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/WarpX.H4
-rw-r--r--Source/WarpX.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/WarpX.H b/Source/WarpX.H
index faca83dfd..47e0bbb87 100644
--- a/Source/WarpX.H
+++ b/Source/WarpX.H
@@ -1260,13 +1260,13 @@ private:
* The problem setup for these tests is an empty (i.e. no particles) domain
* of size 256 by 256 by 256 cells, from which the average time per iteration
* per cell is computed. */
- amrex::Real costs_heuristic_cells_wt = amrex::Real(-1);
+ amrex::Real costs_heuristic_cells_wt = amrex::Real(0);
/** Weight factor for particles in `Heuristic` costs update.
* Default values on GPU are determined from single-GPU tests on Summit.
* The problem setup for these tests is a high-ppc (27 particles per cell)
* uniform plasma on a domain of size 128 by 128 by 128, from which the approximate
* time per iteration per particle is computed. */
- amrex::Real costs_heuristic_particles_wt = amrex::Real(-1);
+ amrex::Real costs_heuristic_particles_wt = amrex::Real(0);
// Determines timesteps for override sync
IntervalsParser override_sync_intervals;
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 5e564f36d..17fb42c42 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -340,7 +340,7 @@ WarpX::WarpX ()
// Set default values for particle and cell weights for costs update;
// Default values listed here for the case AMREX_USE_GPU are determined
// from single-GPU tests on Summit.
- if (costs_heuristic_cells_wt<0. && costs_heuristic_particles_wt<0.
+ if (costs_heuristic_cells_wt<=0. && costs_heuristic_particles_wt<=0.
&& WarpX::load_balance_costs_update_algo==LoadBalanceCostsUpdateAlgo::Heuristic)
{
#ifdef AMREX_USE_GPU