]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Get rid of (now unnecessary) explicit casts. 522/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 12 Feb 2015 13:37:35 +0000 (07:37 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 12 Feb 2015 13:37:35 +0000 (07:37 -0600)
source/grid/grid_generator.cc

index db8ee260b3b294ef43ed5b50243a2c92716edb18..6ff40765ffccddd4ba2daf781b88fff6e27d96d8 100644 (file)
@@ -777,20 +777,20 @@ namespace GridGenerator
       {
       case 1:
         for (unsigned int x=0; x<=n_subdivisions[0]; ++x)
-          points.push_back (Point<dim> (double(x)*delta[0]));
+          points.push_back (double(x)*delta[0]);
         break;
 
       case 2:
         for (unsigned int y=0; y<=n_subdivisions[1]; ++y)
           for (unsigned int x=0; x<=n_subdivisions[0]; ++x)
-            points.push_back (Point<dim> (double(x)*delta[0] + double(y)*delta[1]));
+            points.push_back (double(x)*delta[0] + double(y)*delta[1]);
         break;
 
       case 3:
         for (unsigned int z=0; z<=n_subdivisions[2]; ++z)
           for (unsigned int y=0; y<=n_subdivisions[1]; ++y)
             for (unsigned int x=0; x<=n_subdivisions[0]; ++x)
-              points.push_back (Point<dim> (double(x)*delta[0] + double(y)*delta[1] + double(z)*delta[2]));
+              points.push_back (double(x)*delta[0] + double(y)*delta[1] + double(z)*delta[2]);
         break;
 
       default:

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.