mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Bugfix: use sufficient quadrature order.
This commit is contained in:
parent
5e04ec1448
commit
94b128d6b6
@ -242,7 +242,7 @@ namespace Opm
|
|||||||
// \int_{\partial K} u_h^{ext} (v(x) \cdot n) b_j ds
|
// \int_{\partial K} u_h^{ext} (v(x) \cdot n) b_j ds
|
||||||
// (where u_h^{ext} is the upstream unknown (tof)).
|
// (where u_h^{ext} is the upstream unknown (tof)).
|
||||||
const double normal_velocity = flux / grid_.face_areas[face];
|
const double normal_velocity = flux / grid_.face_areas[face];
|
||||||
FaceQuadrature quad(grid_, face, degree_);
|
FaceQuadrature quad(grid_, face, 2*degree_);
|
||||||
for (int quad_pt = 0; quad_pt < quad.numQuadPts(); ++quad_pt) {
|
for (int quad_pt = 0; quad_pt < quad.numQuadPts(); ++quad_pt) {
|
||||||
quad.quadPtCoord(quad_pt, &coord_[0]);
|
quad.quadPtCoord(quad_pt, &coord_[0]);
|
||||||
DGBasis::eval(grid_, cell, degree_, &coord_[0], &basis_[0]);
|
DGBasis::eval(grid_, cell, degree_, &coord_[0], &basis_[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user