From c0bb670fd965ec7eaea0d2fc9e22b445d73df2aa Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 18 Sep 2024 19:52:42 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- Source/WarpX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index db2f0c0b146..7f9288debb7 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -1388,7 +1388,7 @@ WarpX::ReadParameters () // Instead, if warpx.grid_type=collocated, the momentum-conserving and // energy conserving field gathering algorithms are equivalent (forces // gathered from the collocated grid) and no fields centering occurs. - if ((WarpX::field_gathering_algo == GatheringAlgo::MomentumConserving + if ((WarpX::field_gathering_algo == GatheringAlgo::MomentumConserving && WarpX::grid_type != GridType::Collocated) || WarpX::electrostatic_solver_id == ElectrostaticSolverAlgo::LabFrameElectroMagnetostatic) {