From: bangerth Date: Fri, 12 Aug 2011 22:37:55 +0000 (+0000) Subject: Properly set the quadrature weight for 0d quadrature formulas to 1. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c4902de05be851f4ec167575e28a660c9de20e7;p=dealii-svn.git Properly set the quadrature weight for 0d quadrature formulas to 1. git-svn-id: https://svn.dealii.org/trunk@24054 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/base/quadrature_lib.cc b/deal.II/source/base/quadrature_lib.cc index 5932c63768..9cc5727aab 100644 --- a/deal.II/source/base/quadrature_lib.cc +++ b/deal.II/source/base/quadrature_lib.cc @@ -44,7 +44,11 @@ QGauss<0>::QGauss (const unsigned int) // there are n_q^dim == 1 // points Quadrature<0> (1) -{} +{ + // the single quadrature point gets unit + // weight + this->weights[0] = 1; +} @@ -54,7 +58,11 @@ QGaussLobatto<0>::QGaussLobatto (const unsigned int) // there are n_q^dim == 1 // points Quadrature<0> (1) -{} +{ + // the single quadrature point gets unit + // weight + this->weights[0] = 1; +}