diff options
author | 2020-08-24 23:14:30 +0200 | |
---|---|---|
committer | 2020-08-24 14:14:30 -0700 | |
commit | bb58c764f9f21f8baac5e2fb1d81fed4983d1242 (patch) | |
tree | 3e1f5914d8f1e2be1168b79509718719745ebb93 /Source/Parallelization/WarpXRegrid.cpp | |
parent | 78f9be325d894bbae867aa279efdfd2212690825 (diff) | |
download | WarpX-bb58c764f9f21f8baac5e2fb1d81fed4983d1242.tar.gz WarpX-bb58c764f9f21f8baac5e2fb1d81fed4983d1242.tar.zst WarpX-bb58c764f9f21f8baac5e2fb1d81fed4983d1242.zip |
Fix some warnings (#1239)
This PR fixes the source of several compilation warnings.
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Parallelization/WarpXRegrid.cpp')
-rw-r--r-- | Source/Parallelization/WarpXRegrid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Parallelization/WarpXRegrid.cpp b/Source/Parallelization/WarpXRegrid.cpp index 6c6710121..9381bf60d 100644 --- a/Source/Parallelization/WarpXRegrid.cpp +++ b/Source/Parallelization/WarpXRegrid.cpp @@ -58,8 +58,8 @@ WarpX::LoadBalance () // As specified in the above calls to makeSFC and makeKnapSack, the new // distribution mapping is NOT communicated to all ranks; the loadbalanced // dm is up-to-date only on root, and we can decide whether to broadcast - if (load_balance_efficiency_ratio_threshold > 0.0 - & ParallelDescriptor::MyProc() == ParallelDescriptor::IOProcessorNumber()) + if ((load_balance_efficiency_ratio_threshold > 0.0) + && (ParallelDescriptor::MyProc() == ParallelDescriptor::IOProcessorNumber())) { doLoadBalance = (proposedEfficiency > load_balance_efficiency_ratio_threshold*currentEfficiency); } |