From: bangerth Date: Wed, 15 Jan 2014 02:48:08 +0000 (+0000) Subject: Use double instead of float in one place to avoid a MS VC++ warning. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abbe985827ccc0ce73f8c684981fad40688b5d23;p=dealii-svn.git Use double instead of float in one place to avoid a MS VC++ warning. git-svn-id: https://svn.dealii.org/trunk@32212 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/grid/grid_out.cc b/deal.II/source/grid/grid_out.cc index edf857458e..f0dd256b68 100644 --- a/deal.II/source/grid/grid_out.cc +++ b/deal.II/source/grid/grid_out.cc @@ -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];