From ac39e46de8181045affc0d528047565135fd0c10 Mon Sep 17 00:00:00 2001
From: Luca Heltai <luca.heltai@sissa.it>
Date: Thu, 17 Sep 2015 22:04:13 +0200
Subject: [PATCH] Fixed compilation on mac.

---
 source/fe/mapping_q1.cc        | 4 ++--
 source/fe/mapping_q_generic.cc | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/source/fe/mapping_q1.cc b/source/fe/mapping_q1.cc
index a1ab7c72f0..cf3bd3935c 100644
--- a/source/fe/mapping_q1.cc
+++ b/source/fe/mapping_q1.cc
@@ -406,7 +406,7 @@ transform_real_to_unit_cell (const typename Triangulation<dim,spacedim>::cell_it
   // projection to the least square plane determined by the vertices
   // of the cell
   std::vector<Point<spacedim> > a;
-  compute_mapping_support_points (cell,a);
+  this->compute_mapping_support_points (cell,a);
   Point<dim> initial_p_unit =
     transform_real_to_unit_cell_initial_guess<dim,spacedim>(a,p);
 
@@ -437,7 +437,7 @@ transform_real_to_unit_cell (const typename Triangulation<dim,spacedim>::cell_it
       mdata (this->get_data(update_flags,
                             point_quadrature));
 
-      compute_mapping_support_points (cell, mdata->mapping_support_points);
+      this->compute_mapping_support_points (cell, mdata->mapping_support_points);
       Assert(mdata->mapping_support_points.size() ==
              GeometryInfo<dim>::vertices_per_cell,
              ExcInternalError());
diff --git a/source/fe/mapping_q_generic.cc b/source/fe/mapping_q_generic.cc
index 2cc850d8eb..8f9ffd3e6b 100644
--- a/source/fe/mapping_q_generic.cc
+++ b/source/fe/mapping_q_generic.cc
@@ -34,6 +34,7 @@
 
 #include <cmath>
 #include <algorithm>
+#include <numeric>
 
 
 DEAL_II_NAMESPACE_OPEN
-- 
2.39.5