Commit e77cc534 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

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

parent f7d28f7d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 );
      }