From 7f1a0472b489c7ec01f946d45a8de7362147b2c0 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 17 Sep 2024 14:27:37 +0200 Subject: [PATCH] address branch-clone issue --- .../FieldSolver/FiniteDifferenceSolver/EvolveB.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp index 0a69db6076d..2fcc18a33d0 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveB.cpp @@ -76,23 +76,19 @@ void FiniteDifferenceSolver::EvolveB ( } ablastr::fields::VectorField face_areas; if (fields.has("face_areas", Direction{0}, lev)) { - face_areas = patch_type == PatchType::fine ? - fields.get_alldirs("face_areas", lev) : fields.get_alldirs("face_areas", lev); + face_areas = fields.get_alldirs("face_areas", lev); } ablastr::fields::VectorField area_mod; - if (fields.has("face_areas", Direction{0}, lev)) { - area_mod = patch_type == PatchType::fine ? - fields.get_alldirs("area_mod", lev) : fields.get_alldirs("area_mod", lev); + if (fields.has("area_mod", Direction{0}, lev)) { + area_mod = fields.get_alldirs("area_mod", lev); } ablastr::fields::VectorField ECTRhofield; if (fields.has("ECTRhofield", Direction{0}, lev)) { - ECTRhofield = patch_type == PatchType::fine ? - fields.get_alldirs("ECTRhofield", lev) : fields.get_alldirs("ECTRhofield", lev); + ECTRhofield = fields.get_alldirs("ECTRhofield", lev); } ablastr::fields::VectorField Venl; if (fields.has("Venl", Direction{0}, lev)) { - Venl = patch_type == PatchType::fine ? - fields.get_alldirs("Venl", lev) : fields.get_alldirs("Venl", lev); + Venl = fields.get_alldirs("Venl", lev); } if (m_grid_type == GridType::Collocated) {