]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Cast explicitly.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Sep 2010 21:22:03 +0000 (21:22 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Sep 2010 21:22:03 +0000 (21:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@22111 0785d39b-7218-0410-832d-ea1e28bc413d

tests/multigrid/mg_renumbered_03.cc

index 3f31dacda269e3e981384b0cc188bf11a3488980..c399185f17b6898abf0188370643137a63896807 100644 (file)
@@ -183,7 +183,7 @@ void OutputCreator<dim>::cell(
   const FEValuesBase<dim>& fe = info.fe_values();
   const std::vector<std::vector<double> >& uh = info.values[0];
 
-  const unsigned int square_root = std::pow(fe.n_quadrature_points, 1./dim)+.5;
+  const unsigned int square_root = static_cast<unsigned int>(std::pow(fe.n_quadrature_points, 1./dim)+.5);
   for (unsigned int k1=0; k1<square_root; ++k1)
   {
     for (unsigned int k2=0; k2<square_root; ++k2)

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.