aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpXRegrid.cpp
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers2@gmail.com> 2017-03-28 09:37:43 -0700
committerGravatar Andrew Myers <atmyers2@gmail.com> 2017-03-28 09:37:43 -0700
commit6151dc4888aa6c9571aaf06a89e795bb1f20caf7 (patch)
treea2e5f2befb8b0d1dfa7a3ad96120ed3f98ac260e /Source/WarpXRegrid.cpp
parentfa47be6293b5cd36d43e7f1aa7cd24b6c87d95e1 (diff)
parentd88b17b700ca42507ddf38ebff48587a67358aa9 (diff)
downloadWarpX-6151dc4888aa6c9571aaf06a89e795bb1f20caf7.tar.gz
WarpX-6151dc4888aa6c9571aaf06a89e795bb1f20caf7.tar.zst
WarpX-6151dc4888aa6c9571aaf06a89e795bb1f20caf7.zip
Merge branch 'master' into python-ctypes
Diffstat (limited to 'Source/WarpXRegrid.cpp')
-rw-r--r--Source/WarpXRegrid.cpp2
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);