From 36caed125b95c27fe5c940b2315e7c087e583f28 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 21:52:38 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../FiniteDifferenceSolver/HybridPICModel/HybridPICModel.H | 6 +++--- Source/Initialization/WarpXInitData.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/FieldSolver/FiniteDifferenceSolver/HybridPICModel/HybridPICModel.H b/Source/FieldSolver/FiniteDifferenceSolver/HybridPICModel/HybridPICModel.H index ebd71be7e84..584125ac683 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/HybridPICModel/HybridPICModel.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/HybridPICModel/HybridPICModel.H @@ -91,7 +91,7 @@ public: amrex::Vector, 3>> const& Bfield, amrex::Vector> const& rhofield, amrex::Vector, 3>> const& edge_lengths, - amrex::Real t, + amrex::Real t, bool solve_for_Faraday); void HybridPICSolveE ( @@ -100,7 +100,7 @@ public: std::array< std::unique_ptr, 3> const& Bfield, std::unique_ptr const& rhofield, std::array< std::unique_ptr, 3> const& edge_lengths, - amrex::Real t, + amrex::Real t, int lev, bool solve_for_Faraday); void HybridPICSolveE ( @@ -109,7 +109,7 @@ public: std::array< std::unique_ptr, 3> const& Bfield, std::unique_ptr const& rhofield, std::array< std::unique_ptr, 3> const& edge_lengths, - amrex::Real t, + amrex::Real t, int lev, PatchType patch_type, bool solve_for_Faraday); void BfieldEvolveRK ( diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp index 743428fa2b3..a191ddf6e2d 100644 --- a/Source/Initialization/WarpXInitData.cpp +++ b/Source/Initialization/WarpXInitData.cpp @@ -1338,7 +1338,7 @@ void WarpX::CheckKnownIssues() mypc->m_B_ext_particle_s != "none" || mypc->m_E_ext_particle_s != "none" ); WARPX_ALWAYS_ASSERT_WITH_MESSAGE( - (!external_particle_field_used + (!external_particle_field_used || mypc->m_B_ext_particle_s == "parse_b_ext_particle_function" || mypc->m_E_ext_particle_s == "parse_e_ext_particle_function"), "The hybrid-PIC algorithm only works with analytical external E/B fields "