]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-42: fix compilation error
authorTimo Heister <timo.heister@gmail.com>
Tue, 29 May 2012 19:24:28 +0000 (19:24 +0000)
committerTimo Heister <timo.heister@gmail.com>
Tue, 29 May 2012 19:24:28 +0000 (19:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@25561 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 81038da2ddd26eede758fdc4a7152bb49662c9ab..5683e4af2abbfad0d941a1bbaf6063fdf6137daf 100644 (file)
@@ -1177,7 +1177,7 @@ void Step4<dim>::solve_newton ()
       double a = 0;
       for (unsigned int i=0; (i<10)&&(!damped); i++)
        {
-         a=pow(0.5,i);
+         a=pow(0.5, static_cast<double>(i));
          old_solution = tmp_vector;
          old_solution.sadd(1-a,a, distributed_solution);
 

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.