From 980d6eb4821f2e4e95d9cdb2ad5d91d910506b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Tue, 4 Dec 2012 20:56:05 +0100 Subject: [PATCH] CellQuadrature works only for 3D, enforce it. --- opm/core/grid/CellQuadrature.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/core/grid/CellQuadrature.hpp b/opm/core/grid/CellQuadrature.hpp index 9b416023..4aeceb50 100644 --- a/opm/core/grid/CellQuadrature.hpp +++ b/opm/core/grid/CellQuadrature.hpp @@ -87,12 +87,12 @@ namespace Opm const int degree) : grid_(grid), cell_(cell), degree_(degree) { + if (grid.dimensions != 3) { + THROW("CellQuadrature only implemented for 3D case."); + } if (degree > 2) { THROW("CellQuadrature exact for polynomial degrees > 1 not implemented."); } - if (degree == 2) { - // Prepare subdivision. - } } int numQuadPts() const