From 0c4902de05be851f4ec167575e28a660c9de20e7 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 12 Aug 2011 22:37:55 +0000 Subject: [PATCH] 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 --- deal.II/source/base/quadrature_lib.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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; +} -- 2.39.5