From 3a617780668317604abac687f5d124ca4e6e07b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Thu, 18 Oct 2012 10:51:12 +0200 Subject: [PATCH] Reinstate disabled test. Assert more. --- opm/core/utility/VelocityInterpolation.cpp | 1 + tests/test_velocityinterpolation.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/opm/core/utility/VelocityInterpolation.cpp b/opm/core/utility/VelocityInterpolation.cpp index c8678898..fe1514af 100644 --- a/opm/core/utility/VelocityInterpolation.cpp +++ b/opm/core/utility/VelocityInterpolation.cpp @@ -73,6 +73,7 @@ namespace Opm if (cell == grid_.face_cells[2*face]) { face_flux = flux_[face]; } else { + ASSERT(cell == grid_.face_cells[2*face + 1]); face_flux = -flux_[face]; } for (int dd = 0; dd < dim; ++dd) { diff --git a/tests/test_velocityinterpolation.cpp b/tests/test_velocityinterpolation.cpp index 372868ea..2e7f9aa1 100644 --- a/tests/test_velocityinterpolation.cpp +++ b/tests/test_velocityinterpolation.cpp @@ -465,7 +465,7 @@ BOOST_AUTO_TEST_CASE(test_VelocityInterpolationConstant) testConstantVelRepro2d(); testConstantVelReproPyramid(); testConstantVelReproIrreg2d(); - // testConstantVelReproIrregPrism(); // We should verify if this is expected to fail or not. + testConstantVelReproIrregPrism(); } BOOST_AUTO_TEST_CASE(test_VelocityInterpolationECVI)