]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Simplify code.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Feb 2010 21:50:17 +0000 (21:50 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Feb 2010 21:50:17 +0000 (21:50 +0000)
git-svn-id: https://svn.dealii.org/trunk@20547 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-16/step-16.cc

index 71206d98bdee93cd9cb89d1380af5021d41f6596..9766fd58e8e36104796ba4eeedd2cfae3794d713 100644 (file)
@@ -159,12 +159,7 @@ void Coefficient<dim>::value_list (const std::vector<Point<dim> > &points,
          ExcIndexRange (component, 0, 1));
 
   for (unsigned int i=0; i<n_points; ++i)
-    {
-      if (points[i].square() < 0.5*0.5)
-       values[i] = 20;
-      else
-       values[i] = 1;
-    }
+    values[i] = Coefficient<dim>::value (points[i]);
 }
 
 

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.