From f194d79b20d94a1bc5a82dce99600477b4da855e Mon Sep 17 00:00:00 2001 From: Matthias Frey <matthias.frey@psi.ch> Date: Wed, 15 Jul 2020 14:47:23 +0200 Subject: [PATCH] RectangularDomain: remove check --- src/Solvers/RectangularDomain.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Solvers/RectangularDomain.cpp b/src/Solvers/RectangularDomain.cpp index 314563af6..fe48a44c8 100644 --- a/src/Solvers/RectangularDomain.cpp +++ b/src/Solvers/RectangularDomain.cpp @@ -90,13 +90,6 @@ void RectangularDomain::getBoundaryStencil(int x, int y, int z, double &W, if (z == nr[2] - 1) B = 0.0; - - //simple check if center value of stencil is positive -#ifdef DEBUG - if (C <= 0) - throw OpalException("RectangularDomain::getBoundaryStencil", - "Stencil C is <= 0! This case should never occur!"); -#endif } void RectangularDomain::getBoundaryStencil(int idx, double &W, double &E, -- GitLab