diff options
author | 2017-03-28 09:37:43 -0700 | |
---|---|---|
committer | 2017-03-28 09:37:43 -0700 | |
commit | 6151dc4888aa6c9571aaf06a89e795bb1f20caf7 (patch) | |
tree | a2e5f2befb8b0d1dfa7a3ad96120ed3f98ac260e /Source/WarpXRegrid.cpp | |
parent | fa47be6293b5cd36d43e7f1aa7cd24b6c87d95e1 (diff) | |
parent | d88b17b700ca42507ddf38ebff48587a67358aa9 (diff) | |
download | WarpX-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.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); |