Skip to content
Snippets Groups Projects
Commit 8a767fac authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Changing tnlFunctionAdapter - it passes a mesh to general functions.

parent 16cf2aa7
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ class tnlFunctionAdapter< Mesh, Function, tnlGeneralFunction > ...@@ -52,7 +52,7 @@ class tnlFunctionAdapter< Mesh, Function, tnlGeneralFunction >
const IndexType index, const IndexType index,
const RealType& time = 0.0 ) const RealType& time = 0.0 )
{ {
return function.getValue( mesh.template getEntityCenter< MeshEntityDimension >, return function.getValue( mesh, //.template getEntityCenter< MeshEntityDimension >,
index, index,
time ); time );
} }
...@@ -87,7 +87,7 @@ class tnlFunctionAdapter< tnlGrid< Dimensions, Real, Device, Index >, Function, ...@@ -87,7 +87,7 @@ class tnlFunctionAdapter< tnlGrid< Dimensions, Real, Device, Index >, Function,
const CoordinatesType& coordinates, const CoordinatesType& coordinates,
const RealType& time = 0.0 ) const RealType& time = 0.0 )
{ {
return function.getValue( mesh.template getCellCenter< VertexType >( coordinates ), return function.getValue( mesh, //.template getCellCenter< VertexType >( coordinates ),
index, index,
time ); time );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment