]> https://gitweb.dealii.org/ - code-gallery.git/commitdiff
remove warning 32/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 1 May 2020 15:54:45 +0000 (11:54 -0400)
committerTimo Heister <timo.heister@gmail.com>
Fri, 1 May 2020 15:54:45 +0000 (11:54 -0400)
time_dependent_navier_stokes/time_dependent_navier_stokes.cc

index ac9b0157d1fba8041cb953c332b53018fd290da9..ea012ca574598c1d0787048485d8120e6126236d 100644 (file)
@@ -296,13 +296,13 @@ namespace fluid
 
   bool Time::time_to_output() const
   {
-    unsigned int delta = output_interval / delta_t;
+    unsigned int delta = static_cast<unsigned int>(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<unsigned int>(refinement_interval / delta_t);
     return (timestep >= delta && timestep % delta == 0);
   }
 

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.