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

Fixing test function.

parent 06982639
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ tnlExpBumpFunction< 1, Real >::tnlExpBumpFunction()

template< typename Real >
   template< int XDiffOrder, int YDiffOrder, int ZDiffOrder >
      Real tnlExpBumpFunction< 1, Real >::getF( const Vertex& v ) const
      Real tnlExpBumpFunction< 1, Real >::getF( const VertexType& v ) const
{
   const RealType& x = v.x();
   if( YDiffOrder != 0 || ZDiffOrder != 0 )
@@ -90,7 +90,7 @@ template< typename Real >
   template< int XDiffOrder, int YDiffOrder, int ZDiffOrder >
Real
tnlExpBumpFunction< 2, Real >::
getF( const Vertex& v ) const
getF( const VertexType& v ) const
{
   const RealType& x = v.x();
   const RealType& y = v.y();
@@ -118,11 +118,11 @@ tnlExpBumpFunction< 3, Real >::tnlExpBumpFunction()
{
}

template< typename Vertex, typename Device >
template< typename Real >
   template< int XDiffOrder, int YDiffOrder, int ZDiffOrder >
Real
tnlExpBumpFunction< 3, Real >::
getF( const Vertex& v ) const
getF( const VertexType& v ) const
{
   const RealType& x = v.x();
   const RealType& y = v.y();
+1 −1
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@ bool resolveFunction( const tnlParameterContainer& parameters )
   }
   if( functionName == "exp-bump" )
   {
      typedef tnlExpBumpFunction< MeshType::Dimensions, typename MeshType::VertexType, typename MeshType::DeviceType > FunctionType;
      typedef tnlExpBumpFunction< MeshType::Dimensions, typename MeshType::RealType > FunctionType;
      return resolveDerivatives< MeshType, FunctionType >( parameters );
   }
   cerr << "Unknown function " << functionName << "." << endl;