From 9a7a10344204aea0da3e712169198e483a945e7a Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 4 Feb 2014 21:44:57 +0000 Subject: [PATCH] Pass array by reference instead of by value. This should also help MS VC++ which doesn't like the situation as is. git-svn-id: https://svn.dealii.org/trunk@32406 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/grid/grid_generator.h | 5 ++--- deal.II/source/grid/grid_generator.cc | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/deal.II/include/deal.II/grid/grid_generator.h b/deal.II/include/deal.II/grid/grid_generator.h index 56194984fe..0c708ab4ea 100644 --- a/deal.II/include/deal.II/grid/grid_generator.h +++ b/deal.II/include/deal.II/grid/grid_generator.h @@ -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 void parallelogram (Triangulation &tria, - const Point corners[dim], + const Point (&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); diff --git a/deal.II/source/grid/grid_generator.cc b/deal.II/source/grid/grid_generator.cc index 0fc9d742a3..e71587880f 100644 --- a/deal.II/source/grid/grid_generator.cc +++ b/deal.II/source/grid/grid_generator.cc @@ -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 > vertices (GeometryInfo<2>::vertices_per_cell); -- 2.39.5