diff options
Diffstat (limited to 'Source/WarpXRegrid.cpp')
-rw-r--r-- | Source/WarpXRegrid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WarpXRegrid.cpp b/Source/WarpXRegrid.cpp index 32508b9ba..d3eced1e6 100644 --- a/Source/WarpXRegrid.cpp +++ b/Source/WarpXRegrid.cpp @@ -217,7 +217,7 @@ WarpX::getCostCountDM (const Array<long>& cost, const BoxArray& ba) { DistributionMapping res; int nprocs = ParallelDescriptor::NProcs(); - const int factor = 1.5; // A process can get up to 'factor' times of the average number of boxes. + const Real factor = 1.5; // A process can get up to 'factor' times of the average number of boxes. int nmax = (cost.size()+nprocs-1) / nprocs * factor; Real eff; res.KnapSackProcessorMap(cost, nprocs, &eff, true, nmax); |