]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use double instead of float in one place to avoid a MS VC++ warning.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 15 Jan 2014 02:48:08 +0000 (02:48 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 15 Jan 2014 02:48:08 +0000 (02:48 +0000)
git-svn-id: https://svn.dealii.org/trunk@32212 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/grid_out.cc

index edf857458e9ac0bfc08267c43846a5edf7500e09..f0dd256b68b20ede68901b7bb8f7d795497e10e3 100644 (file)
@@ -1,7 +1,7 @@
 // ---------------------------------------------------------------------
 // $Id$
 //
-// Copyright (C) 1999 - 2013 by the deal.II authors
+// Copyright (C) 1999 - 2014 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -1530,7 +1530,7 @@ void GridOut::write_svg(const Triangulation<2,2> &tria, std::ostream &out) const
   Point<3> camera_direction_temp;
   Point<3> camera_horizontal_temp;
 
-  const float angle_factor = 3.14159265 / 180.;
+  const double angle_factor = 3.14159265 / 180.;
 
   // (I) rotate the camera to the chosen polar angle
   camera_position_temp[1] = cos(angle_factor * svg_flags.polar_angle) * camera_position[1] - sin(angle_factor * svg_flags.polar_angle) * camera_position[2];

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.