]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
GaussLobatto points fixed
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 30 May 2005 14:45:55 +0000 (14:45 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 30 May 2005 14:45:55 +0000 (14:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@10777 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/quadrature_lib.cc

index c466a2f9f0dc5a3a536beb60554ec7d60200e36c..ab876dbc648427de3b58883ab5bbef10365c7649 100644 (file)
@@ -121,7 +121,7 @@ QGaussLobatto<1>::QGaussLobatto (unsigned int n)
 {
   for (unsigned int k=0;k<n;++k)
     {
-      this->quadrature_points[k] = Point<1>(std::sin(2.*M_PI*k/(n-1)));
+      this->quadrature_points[k] = Point<1>(.5-.5*std::cos(M_PI*k/(n-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.