From 8a767face9a8a20ba4c42a6b8f0d4c8ed2be184d Mon Sep 17 00:00:00 2001
From: Tomas Oberhuber <tomas.oberhuber@fjfi.cvut.cz>
Date: Tue, 10 Mar 2015 10:31:36 +0100
Subject: [PATCH] Changing tnlFunctionAdapter - it passes a mesh to general
 functions.

---
 src/functions/tnlFunctionAdapter.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/functions/tnlFunctionAdapter.h b/src/functions/tnlFunctionAdapter.h
index f687b384b5..89265dc435 100644
--- a/src/functions/tnlFunctionAdapter.h
+++ b/src/functions/tnlFunctionAdapter.h
@@ -52,7 +52,7 @@ class tnlFunctionAdapter< Mesh, Function, tnlGeneralFunction >
                                 const IndexType index,
                                 const RealType& time = 0.0 )
       {
-         return function.getValue( mesh.template getEntityCenter< MeshEntityDimension >,
+         return function.getValue( mesh, //.template getEntityCenter< MeshEntityDimension >,
                                    index,
                                    time );
       }
@@ -87,7 +87,7 @@ class tnlFunctionAdapter< tnlGrid< Dimensions, Real, Device, Index >, Function,
                                 const CoordinatesType& coordinates,
                                 const RealType& time = 0.0 )
       {
-         return function.getValue( mesh.template getCellCenter< VertexType >( coordinates ),
+         return function.getValue( mesh, //.template getCellCenter< VertexType >( coordinates ),
                                    index,
                                    time );
       }
-- 
GitLab