Loading src/core/mfuncs.h +3 −0 Original line number Diff line number Diff line Loading @@ -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 ); Loading src/functors/tnlTestFunction.h +2 −0 Original line number Diff line number Diff line Loading @@ -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 { Loading @@ -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 { Loading src/problems/tnlHeatEquationEocRhs.h +2 −2 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ class tnlHeatEquationEocRhs if( ! testFunction.setup( parameters, prefix ) ) return false; return true; }; } template< typename Vertex, typename Real > Loading @@ -51,7 +51,7 @@ class tnlHeatEquationEocRhs { return testFunction.getTimeDerivative( vertex, time ) - exactOperator.getValue( testFunction, vertex, time ); }; } protected: ExactOperator exactOperator; Loading src/solvers/pde/tnlNoTimeDiscretisation.h +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ class tnlNoTimeDiscretisation const RealType& rhs ) { b += rhs; }; } }; #endif /* TNLNOTIMEDISCRETISATION_H */ Loading Loading
src/core/mfuncs.h +3 −0 Original line number Diff line number Diff line Loading @@ -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 ); Loading
src/functors/tnlTestFunction.h +2 −0 Original line number Diff line number Diff line Loading @@ -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 { Loading @@ -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 { Loading
src/problems/tnlHeatEquationEocRhs.h +2 −2 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ class tnlHeatEquationEocRhs if( ! testFunction.setup( parameters, prefix ) ) return false; return true; }; } template< typename Vertex, typename Real > Loading @@ -51,7 +51,7 @@ class tnlHeatEquationEocRhs { return testFunction.getTimeDerivative( vertex, time ) - exactOperator.getValue( testFunction, vertex, time ); }; } protected: ExactOperator exactOperator; Loading
src/solvers/pde/tnlNoTimeDiscretisation.h +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ class tnlNoTimeDiscretisation const RealType& rhs ) { b += rhs; }; } }; #endif /* TNLNOTIMEDISCRETISATION_H */ Loading