]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Explicitly cast to the type we want.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 17 Sep 2010 20:11:21 +0000 (20:11 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 17 Sep 2010 20:11:21 +0000 (20:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@22029 0785d39b-7218-0410-832d-ea1e28bc413d

tests/multigrid/mg_renumbered_02.cc

index 8987a2c22808f9dee3f2799f06a68f2581fd612b..5b98abc1d1a36fc69a5f913c56143061bee8f5d8 100644 (file)
@@ -163,7 +163,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)
@@ -253,7 +253,7 @@ LaplaceProblem<dim>::output_gpl(const MGDoFHandler<dim> &dof,
   info_box.initialize_update_flags();
   UpdateFlags update_flags = update_quadrature_points | update_values | update_gradients;
   info_box.add_update_flags(update_flags, true, true, true, true);
-  
+
   NamedData<MGLevelObject<Vector<double> >* > data;
   data.add(&v, "mg_vector");
   info_box.cell_selector.add("mg_vector");

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.