From: heister Date: Fri, 8 Nov 2013 15:11:41 +0000 (+0000) Subject: get rid of some warnings X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2156e1ba74f9e90d1d9c0571cd44f4211d3a8799;p=dealii-svn.git get rid of some warnings git-svn-id: https://svn.dealii.org/trunk@31591 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/base/data_out_base.cc b/deal.II/source/base/data_out_base.cc index f1e611fc5d..b000b1435e 100644 --- a/deal.II/source/base/data_out_base.cc +++ b/deal.II/source/base/data_out_base.cc @@ -5629,6 +5629,16 @@ void DataOutBase::write_vtu_main (const std::vector > &patch AssertThrow (out, ExcIO()); } +template <> +void DataOutBase::write_svg<1,1> (const std::vector > &patches, + const std::vector &data_names, + const std::vector > &vector_data_ranges, + const SvgFlags &flags, + std::ostream &out) +{ + AssertThrow (false, ExcNotImplemented()); +} + template void DataOutBase::write_svg (const std::vector > &patches, @@ -5648,9 +5658,7 @@ void DataOutBase::write_svg (const std::vector > &patches, if (flags.margin) margin_in_percent = 5; -// determine the bounding box in the model space - double x_min, y_min, z_min; - double x_max, y_max, z_max; + // determine the bounding box in the model space double x_dimension, y_dimension, z_dimension; typename std::vector >::const_iterator patch = patches.begin(); @@ -5672,12 +5680,12 @@ void DataOutBase::write_svg (const std::vector > &patches, patch->data.n_rows() == 0, ExcIndexRange (flags.height_vector, 0, patch->data.n_rows())); - x_min = projected_point[0]; - x_max = x_min; - y_min = projected_point[1]; - y_max = y_min; - z_min = patch->data.n_rows() != 0 ? patch->data(flags.height_vector,0) : 0; - z_max = z_min; + double x_min = projected_point[0]; + double x_max = x_min; + double y_min = projected_point[1]; + double y_max = y_min; + double z_min = patch->data.n_rows() != 0 ? patch->data(flags.height_vector,0) : 0; + double z_max = z_min; // iterate over the patches for (; patch != patches.end(); ++patch) @@ -5757,9 +5765,9 @@ void DataOutBase::write_svg (const std::vector > &patches, camera_focus = .5 * z_dimension; - Point<3> camera_position_temp(true); - Point<3> camera_direction_temp(true); - Point<3> camera_horizontal_temp(true); + Point<3> camera_position_temp; + Point<3> camera_direction_temp; + Point<3> camera_horizontal_temp; const float angle_factor = 3.14159265 / 180.;