]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Properly set the quadrature weight for 0d quadrature formulas to 1.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 12 Aug 2011 22:37:55 +0000 (22:37 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 12 Aug 2011 22:37:55 +0000 (22:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@24054 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/quadrature_lib.cc

index 5932c6376801193bd83c458e8022ce47f4d33c28..9cc5727aab9bc200543ff22e9b11295e4bed38d3 100644 (file)
@@ -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;
+}
 
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.