]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Minor code edits.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Sep 2009 14:12:33 +0000 (14:12 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Sep 2009 14:12:33 +0000 (14:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@19464 0785d39b-7218-0410-832d-ea1e28bc413d

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

index f38ad77630338a26fc37188f5e0c2f8074d89d6b..ceb8ff05a36892b0f28648a47dd7afd204646c6e 100644 (file)
@@ -288,11 +288,14 @@ namespace EquationData{
   double Velocity<dim>::value( const Point<dim> &p,
                               const unsigned int ) const
   {
-    double return_value = 0.;
-    static const double Um = 1.5, H = 4.1;
     if( this->comp == 0 )
-      return_value = 4.*Um*p(1)*( H - p(1) )/(H*H);
-    return return_value;
+      {
+       const double Um = 1.5;
+       const double H  = 4.1;
+       return 4.*Um*p(1)*( H - p(1) )/(H*H);
+      }
+    else
+      return 0;
   }
 
   template<int 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.