]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify an initialization. 3439/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Nov 2016 17:58:48 +0000 (11:58 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Nov 2016 17:58:48 +0000 (11:58 -0600)
source/grid/grid_out.cc

index 8918c6e5034ed25e921dd2c9996f65b3759fbf4f..cc733c55fe535d7c4f2be7857168424a7988e054 100644 (file)
@@ -1472,9 +1472,9 @@ void GridOut::write_svg(const Triangulation<2,2> &tria, std::ostream &out) const
 
   // auxiliary variables for the bounding box and the range of cell levels
   double x_min = tria.begin()->vertex(0)[0];
-  double x_max = tria.begin()->vertex(0)[0];
+  double x_max = x_min;
   double y_min = tria.begin()->vertex(0)[1];
-  double y_max = tria.begin()->vertex(0)[1];
+  double y_max = y_min;
 
   double x_dimension, y_dimension;
 

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.