Commit cee2a997 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

trying to avoid some compiler warnings

parent 836b227c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -63,16 +63,19 @@ T tnlAbs( const T& n )
   return n;
};

__cuda_callable__
inline int tnlAbs( const int& n )
{
   return abs( n );
};

__cuda_callable__
inline float tnlAbs( const float& f )
{
   return fabs( f );
};

__cuda_callable__
inline double tnlAbs( const double& d )
{
   return fabs( d );
+2 −0
Original line number Diff line number Diff line
@@ -73,6 +73,7 @@ class tnlTestFunction

#ifdef HAVE_NOT_CXX11
   template< typename Vertex >
   __cuda_callable__
   Real getValue( const Vertex& vertex,
                  const Real& time = 0 ) const
   {
@@ -97,6 +98,7 @@ class tnlTestFunction

#ifdef HAVE_NOT_CXX11
   template< typename Vertex >
   __cuda_callable__
   Real getTimeDerivative( const Vertex& vertex,
                           const Real& time = 0 ) const
   {
+2 −2
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ class tnlHeatEquationEocRhs
         if( ! testFunction.setup( parameters, prefix ) )
            return false;
         return true;
      };
      }

      template< typename Vertex,
                typename Real >
@@ -51,7 +51,7 @@ class tnlHeatEquationEocRhs
      {
         return testFunction.getTimeDerivative( vertex, time )
                - exactOperator.getValue( testFunction, vertex, time );
      };
      }

   protected:
      ExactOperator exactOperator;
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ class tnlNoTimeDiscretisation
                                                               const RealType& rhs )
        {
            b += rhs;
        };
        }
};

#endif	/* TNLNOTIMEDISCRETISATION_H */