From: Wolfgang Bangerth Date: Wed, 14 Jul 2010 13:50:13 +0000 (+0000) Subject: Avoid a couple warnings about converting from double to int. X-Git-Tag: v8.0.0~5818 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89956a7066094b6c6f0f8c7e69d86f9f76ac238b;p=dealii.git Avoid a couple warnings about converting from double to int. git-svn-id: https://svn.dealii.org/trunk@21497 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 4554dcf0b8..7be2e1b89a 100644 --- a/deal.II/examples/step-35/step-35.cc +++ b/deal.II/examples/step-35/step-35.cc @@ -1,7 +1,7 @@ /* $Id$ */ /* Version: $Name: $ */ /* */ -/* Copyright (C) 2007, 2008, 2009 by the deal.II authors */ +/* Copyright (C) 2007, 2008, 2009, 2010 by the deal.II authors */ /* Author: Abner Salgado, Texas A&M University 2009 */ /* */ /* This file is subject to QPL and may not be distributed */ @@ -241,7 +241,7 @@ namespace RunTimeParameters prm.enter_subsection ("Data solve velocity"); { - vel_max_iterations = prm.get_double ("max_iterations"); + vel_max_iterations = prm.get_integer ("max_iterations"); vel_eps = prm.get_double ("eps"); vel_Krylov_size = prm.get_integer ("Krylov_size"); vel_off_diagonals = prm.get_integer ("off_diagonals"); @@ -1033,7 +1033,7 @@ NavierStokesProjection::run (const bool verbose, { ConditionalOStream verbose_cout (std::cout, verbose); - unsigned int n_steps = (T - t_0)/dt; + const unsigned int n_steps = static_cast((T - t_0)/dt); vel_exact.set_time (2.*dt); output_results(1); for (unsigned int n = 2; n<=n_steps; ++n)