From 12f4599417183345de5c64e92a918c6670fdfc24 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 25 Jan 2024 00:55:56 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/BinaryOrbitCIC/binary_orbit.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/BinaryOrbitCIC/binary_orbit.cpp b/src/BinaryOrbitCIC/binary_orbit.cpp index 367da7beb..ac4acf851 100644 --- a/src/BinaryOrbitCIC/binary_orbit.cpp +++ b/src/BinaryOrbitCIC/binary_orbit.cpp @@ -179,9 +179,8 @@ auto problem_main() -> int // check max abs particle distance float max_err = NAN; if (amrex::ParallelDescriptor::IOProcessor() && (!sim.userData_.dist.empty())) { - auto result = - std::max_element(sim.userData_.dist.begin(), sim.userData_.dist.end(), - [](amrex::ParticleReal a, amrex::ParticleReal b) { return std::abs(a) < std::abs(b); }); + auto result = std::max_element(sim.userData_.dist.begin(), sim.userData_.dist.end(), + [](amrex::ParticleReal a, amrex::ParticleReal b) { return std::abs(a) < std::abs(b); }); max_err = std::abs(*result); } amrex::ParallelDescriptor::Bcast(&max_err, 1, MPI_REAL, amrex::ParallelDescriptor::ioProcessor, amrex::ParallelDescriptor::Communicator());