OPM/opm-core — pull request #108 by atgeirr (2012-12-05 09:50:37+00:00)
Title: Separate quadrature from dg

Quadrature classes have been moved out of the DG-TOF code and into their own files. A preliminary unit test has been added, so far only verifying correct behaviour for degree 1 and 2 precision, on a cartesian grid cell and its faces.

The quadrature classes are not complete, primary caveats include:
* Only works for 3-dimensional grids.
* CellQuadrature with degree of precision 2 is slow.
* No degree of precision higher than 2.

A design goal of these classes has been to provide quadrature for general polyhedral grids in a reasonable fashion. There are cases when it could be made much faster, when for example a cell geometry is simple (tetrahedron, hexahedron), but this is not done yet. For some specific cell geometries, it would be easy to provide higher degrees of precision, too.