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

Making function adapter to work with other types than float and double.

parent 82458c15
No related branches found
No related tags found
1 merge request!26Lbm
......@@ -45,11 +45,11 @@ class FunctionAdapter
return function.setup( meshPointer, parameters, prefix );
}
template< typename EntityType >
template< typename EntityType, typename TimeReal = RealType >
__cuda_callable__ inline
static RealType getValue( const FunctionType& function,
const EntityType& meshEntity,
const RealType& time )
const TimeReal& time )
{
return function( meshEntity, 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