From ef7b6915fd614c8049a4fde79e2789784cbe2799 Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 16 Sep 2009 14:12:33 +0000 Subject: [PATCH] Minor code edits. git-svn-id: https://svn.dealii.org/trunk@19464 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-35/step-35.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 -- 2.39.5