CellQuadrature works only for 3D, enforce it.

This commit is contained in:
Atgeirr Flø Rasmussen 2012-12-04 20:56:05 +01:00
parent 8132cb21b9
commit 980d6eb482

View File

@ -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