Skip to content
Snippets Groups Projects
Commit 60b160b0 authored by Thimo Neubauer's avatar Thimo Neubauer
Browse files

Algorithm assumed that integration_element is the same for all

quadrature points! Fixed.

[[Imported from SVN: r1060]]
parent b9066ef7
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,6 @@ namespace Dune
for( ; it != endit ; ++it)
{
discFunc.localFunction( *it , lf );
double det = (*it).geometry().integration_element(quad.point(0));
const typename FunctionSpaceType::BaseFunctionSetType & set =
functionSpace_.getBaseFunctionSet(*it);
......@@ -53,6 +52,7 @@ namespace Dune
{
for(int qP = 0; qP < quad.nop(); qP++)
{
double det = (*it).geometry().integration_element(quad.point(qP));
f.evaluate((*it).geometry().global( quad.point(qP) ), ret);
set.eval(i,quad,qP,phi);
lf[i] += det * quad.weight(qP) * (ret * phi);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment