From 96168e1a0826b55104178061cf6807c8c6e3ecfe Mon Sep 17 00:00:00 2001 From: roelof-groenewald Date: Wed, 11 Sep 2024 09:26:44 -0700 Subject: [PATCH] second try for fixing potential specified check --- .../ElectrostaticSolvers/RelativisticExplicitES.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/FieldSolver/ElectrostaticSolvers/RelativisticExplicitES.cpp b/Source/FieldSolver/ElectrostaticSolvers/RelativisticExplicitES.cpp index e1965706da1..4fdf2d0789a 100644 --- a/Source/FieldSolver/ElectrostaticSolvers/RelativisticExplicitES.cpp +++ b/Source/FieldSolver/ElectrostaticSolvers/RelativisticExplicitES.cpp @@ -30,7 +30,9 @@ RelativisticExplicitES::ComputeSpaceChargeField ( } // Add the field due to the boundary potentials - AddBoundaryField(Efield_fp, Bfield_fp); + if (m_poisson_boundary_handler->m_boundary_potential_specified) { + AddBoundaryField(Efield_fp, Bfield_fp); + } } void