Loading src/functions/tnlFunctionAdapter.h +5 −4 Original line number Diff line number Diff line Loading @@ -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 ); } Loading Loading @@ -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 ); } Loading Loading @@ -221,11 +221,12 @@ class tnlFunctionAdapter< tnlGrid< Dimensions, Real, Device, Index >, Function, } }; // TODO: Fix the specializations for the constant function. #ifdef UNDEF /**** * Specialization for constant function * - it does not ask the mesh for the mesh entity center */ template< typename Mesh, int FunctionDimensions, typename Real > Loading Loading @@ -288,6 +289,6 @@ class tnlFunctionAdapter< tnlGrid< Dimensions, Real, Device, Index >, } }; #endif /* UNDEF */ #endif /* TNLFUNCTIONADAPTER_H_ */ Loading
src/functions/tnlFunctionAdapter.h +5 −4 Original line number Diff line number Diff line Loading @@ -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 ); } Loading Loading @@ -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 ); } Loading Loading @@ -221,11 +221,12 @@ class tnlFunctionAdapter< tnlGrid< Dimensions, Real, Device, Index >, Function, } }; // TODO: Fix the specializations for the constant function. #ifdef UNDEF /**** * Specialization for constant function * - it does not ask the mesh for the mesh entity center */ template< typename Mesh, int FunctionDimensions, typename Real > Loading Loading @@ -288,6 +289,6 @@ class tnlFunctionAdapter< tnlGrid< Dimensions, Real, Device, Index >, } }; #endif /* UNDEF */ #endif /* TNLFUNCTIONADAPTER_H_ */