From: bangerth Date: Wed, 16 Sep 2009 14:12:33 +0000 (+0000) Subject: Minor code edits. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef7b6915fd614c8049a4fde79e2789784cbe2799;p=dealii-svn.git Minor code edits. git-svn-id: https://svn.dealii.org/trunk@19464 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-35/step-35.cc b/deal.II/examples/step-35/step-35.cc index f38ad77630..ceb8ff05a3 100644 --- a/deal.II/examples/step-35/step-35.cc +++ b/deal.II/examples/step-35/step-35.cc @@ -288,11 +288,14 @@ namespace EquationData{ double Velocity::value( const Point &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