]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make an input parameter const.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 May 2006 23:09:39 +0000 (23:09 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 May 2006 23:09:39 +0000 (23:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@13093 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/geometry_info.h
deal.II/base/source/geometry_info.cc

index 21b39e82d74de911c0a059a38d04e953821a02a5..dce7843557f0e105fba4a6849922a71e31684cab 100644 (file)
@@ -908,7 +908,7 @@ struct GeometryInfo
                                       * For points inside the cell, this is
                                       * defined as zero.
                                       */
-    static double distance_to_unit_cell(Point<dim> &p);
+    static double distance_to_unit_cell (const Point<dim> &p);
 
                                      /**
                                      * For each face of the reference
index 647e0426b740515bccb5bbefb40cb38d78cb347a..a636d2236e8680c1683e02c739ef530bdce55ee1 100644 (file)
@@ -437,7 +437,7 @@ GeometryInfo<dim>::project_to_unit_cell (Point<dim> &p)
 
 template <int dim>
 double
-GeometryInfo<dim>::distance_to_unit_cell (Point<dim> &p)
+GeometryInfo<dim>::distance_to_unit_cell (const Point<dim> &p)
 {
    double result = 0.0;
    

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.