]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix one oversight.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 28 Jan 2012 13:50:44 +0000 (13:50 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 28 Jan 2012 13:50:44 +0000 (13:50 +0000)
git-svn-id: https://svn.dealii.org/trunk@24948 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 7ee280e02de272d8edcb3d76ac84434a242182e6..04d75dfdb8dfbf9b9b64fdeeaa57be7abfa8b06b 100644 (file)
@@ -4,7 +4,7 @@
 
 /*    $Id$       */
 /*                                                                */
-/*    Copyright (C) 2010, 2011 by Chih-Che Chueh and the deal.II authors */
+/*    Copyright (C) 2010, 2011, 2012 by Chih-Che Chueh and the deal.II authors */
 /*                                                                */
 /*    This file is subject to QPL and may not be  distributed     */
 /*    without copyright and license information. Please refer     */
@@ -2424,7 +2424,7 @@ compute_viscosity (const std::vector<double>          &old_saturation,
        max_velocity = std::max (std::sqrt (u*u), max_velocity);
       }
 
-    const double global_scaling = global_u_infty * global_S_variation /
+    const double global_scaling = global_u_infty * std::pow(global_S_variation,alpha) /
                                  std::pow(global_Omega_diameter, alpha - 2.);
 
     return (beta *

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.