From c3c88dfacf1e4fd4fb2148531e20034eed27b836 Mon Sep 17 00:00:00 2001 From: Lorenzo Giacomel <47607756+lgiacome@users.noreply.github.com> Date: Thu, 3 Feb 2022 07:06:03 +0100 Subject: Fixing the computation of ECT Rho Field (#2711) * Fixed computation of ECT Rho * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Adding a missing preprocessor directive * Updated contributors list * Apply suggestions from code review Co-authored-by: Axel Huebl * Apply suggestions from code review Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> * Fixed an abort message * Fix in Source/Initialization/WarpXInitData.cpp Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> * Added some comments * Made EvolveRhoCartesianECT not static Co-authored-by: Axel Huebl Co-authored-by: lgiacome Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Axel Huebl Co-authored-by: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> --- Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp') diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp index 318081159..b044f3b70 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp @@ -76,11 +76,7 @@ void FiniteDifferenceSolver::EvolveE ( } else if (m_fdtd_algo == MaxwellSolverAlgo::Yee || m_fdtd_algo == MaxwellSolverAlgo::ECT) { EvolveECartesian ( Efield, Bfield, Jfield, edge_lengths, Ffield, lev, dt ); -#ifdef AMREX_USE_EB - if (m_fdtd_algo == MaxwellSolverAlgo::ECT) { - EvolveRhoCartesianECT(Efield, edge_lengths, face_areas, ECTRhofield, lev); - } -#endif + } else if (m_fdtd_algo == MaxwellSolverAlgo::CKC) { EvolveECartesian ( Efield, Bfield, Jfield, edge_lengths, Ffield, lev, dt ); -- cgit v1.2.3