]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add comments.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 21 Apr 2003 16:21:14 +0000 (16:21 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 21 Apr 2003 16:21:14 +0000 (16:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@7421 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/polynomial_test.cc

index 758ed8a77a214e227d99279d713e3ef199acf89e..cba2d1c3c1f1768d1e07ad2641f5c7aa591feb53 100644 (file)
@@ -42,6 +42,10 @@ void check_poly(const Point<dim>& x,
   
   for (unsigned int k=0;k<n;++k)
     {
+                                       // first make sure the
+                                       // individual functions work in
+                                       // a consistent way
+      
                                       // Check if compute_value is ok
       double val = p.compute_value(k,x);
       //if (val != values[k])
@@ -61,6 +65,15 @@ void check_poly(const Point<dim>& x,
        deallog << 'P' << k << ": second derivatives differ " << grad2 << " != "
                << second[k] << std::endl;
 
+
+                                       // finally output values,
+                                       // gradients, etc, to make sure
+                                       // that they are not only
+                                       // consistent, but also
+                                       // correct. Multiply them
+                                       // somewhat to make them
+                                       // significant despite our
+                                       // two-post-dot-digits limit
       values[k] *= pow(10, dim);
       gradients[k] *= pow(10, dim);
       

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.