CellQuadrature works only for 3D, enforce it.
This commit is contained in:
parent
8132cb21b9
commit
980d6eb482
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user