From: Timo Heister Date: Fri, 1 May 2020 15:54:45 +0000 (-0400) Subject: remove warning X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=712a5fe6181138a5ac04740ba1e6f09ed6b6e9c5;p=code-gallery.git remove warning --- diff --git a/time_dependent_navier_stokes/time_dependent_navier_stokes.cc b/time_dependent_navier_stokes/time_dependent_navier_stokes.cc index ac9b015..ea012ca 100644 --- a/time_dependent_navier_stokes/time_dependent_navier_stokes.cc +++ b/time_dependent_navier_stokes/time_dependent_navier_stokes.cc @@ -296,13 +296,13 @@ namespace fluid bool Time::time_to_output() const { - unsigned int delta = output_interval / delta_t; + unsigned int delta = static_cast(output_interval / delta_t); return (timestep >= delta && timestep % delta == 0); } bool Time::time_to_refine() const { - unsigned int delta = refinement_interval / delta_t; + unsigned int delta = static_cast(refinement_interval / delta_t); return (timestep >= delta && timestep % delta == 0); }