From bb58c764f9f21f8baac5e2fb1d81fed4983d1242 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 24 Aug 2020 23:14:30 +0200 Subject: Fix some warnings (#1239) This PR fixes the source of several compilation warnings. Co-authored-by: Axel Huebl --- Source/Parallelization/WarpXRegrid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Parallelization/WarpXRegrid.cpp') 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); } -- cgit v1.2.3