]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Implementation of generate_unit_points in 1d.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 12 Mar 2004 10:16:28 +0000 (10:16 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 12 Mar 2004 10:16:28 +0000 (10:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@8722 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe_dgp_monomial.cc

index 9178be1a3f7e213a7609abf90f8260196ee9ed99..e9773a781789d52dd830187854799a7d2cad498e 100644 (file)
@@ -79,10 +79,13 @@ namespace
                             std::vector<Point<dim> > &);
 
   template <>
-  void generate_unit_points (const unsigned int,
-                            std::vector<Point<1> > &)
+  void generate_unit_points (const unsigned int k,
+                            std::vector<Point<1> > &p)
   {
-    Assert(false, ExcNotImplemented());
+    Assert(p.size()==k+1, ExcDimensionMismatch(p.size(), k+1));
+    const double h = 1./k;
+    for (unsigned int i=0; i<p.size(); ++i)
+      p[i](0)=i*h;
   }
   
   

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.