]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Pass array by reference instead of by value. This should also help MS VC++ which...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 Feb 2014 21:44:57 +0000 (21:44 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 Feb 2014 21:44:57 +0000 (21:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@32406 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/grid/grid_generator.h
deal.II/source/grid/grid_generator.cc

index 56194984fef396fbb07b436bc4c9de731b44902c..0c708ab4eab1cd19d25d6c1633fa5663c14e5d8d 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.
 //
@@ -205,7 +205,7 @@ namespace GridGenerator
   template <int dim>
   void
   parallelogram (Triangulation<dim> &tria,
-                 const Point<dim>  corners[dim],
+                 const Point<dim>  (&corners)[dim],
                  const bool          colorize=false);
 
   /**
@@ -576,7 +576,6 @@ namespace GridGenerator
    * @param r The inner radius of the
    * torus.
    */
-
   void torus (Triangulation<2,3> &tria,
               const double        R,
               const double        r);
index 0fc9d742a3c46ba43127f79dd0dbe2c056b7ec1b..e71587880fbd3ef062bb927417a196c8a150b226 100644 (file)
@@ -633,7 +633,7 @@ namespace GridGenerator
   template<>
   void
   parallelogram (Triangulation<3>  &tria,
-                 const Point<3> corners[3],
+                 const Point<3> (&corners)[3],
                  const bool         colorize)
   {
     Assert (false, ExcNotImplemented());
@@ -642,7 +642,7 @@ namespace GridGenerator
   template<>
   void
   parallelogram (Triangulation<1>  &tria,
-                 const Point<1> corners[1],
+                 const Point<1> (&corners)[1],
                  const bool         colorize)
   {
     Assert (false, ExcNotImplemented());
@@ -652,7 +652,7 @@ namespace GridGenerator
   template<>
   void
   parallelogram (Triangulation<2>  &tria,
-                 const Point<2> corners[2],
+                 const Point<2> (&corners)[2],
                  const bool         colorize)
   {
     std::vector<Point<2> > vertices (GeometryInfo<2>::vertices_per_cell);

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.