Loading src/core/vectors/tnlSharedVector.h +2 −11 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ #include <core/arrays/tnlSharedArray.h> #include <core/vectors/tnlVector.h> #include <functors/tnlFunctionType.h> #include <functors/tnlFunction.h> class tnlHost; Loading @@ -37,6 +37,7 @@ class tnlSharedVector : public tnlSharedArray< Real, Device, Index > typedef tnlSharedVector< Real, tnlHost, Index > HostType; typedef tnlSharedVector< Real, tnlCuda, Index > CudaType; static constexpr tnlFunctionType getFunctionType() { return tnlDiscreteFunction; } tnlSharedVector(); Loading Loading @@ -147,16 +148,6 @@ class tnlSharedVector : public tnlSharedArray< Real, Device, Index > }; template< typename Real, typename Device, typename Index > class tnlFunctionType< tnlSharedVector< Real, Device, Index > > { public: enum { Type = tnlDiscreteFunction }; }; #include <core/vectors/tnlSharedVector_impl.h> #endif /* TNLSHAREDVECTOR_H_ */ src/core/vectors/tnlVector.h +2 −11 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ #define TNLVECTOR_H_ #include <core/arrays/tnlArray.h> #include <functors/tnlFunctionType.h> #include <functors/tnlFunction.h> class tnlHost; Loading @@ -36,6 +36,7 @@ class tnlVector : public tnlArray< Real, Device, Index > typedef tnlVector< Real, tnlHost, Index > HostType; typedef tnlVector< Real, tnlCuda, Index > CudaType; static constexpr tnlFunctionType getFunctionType() { return tnlDiscreteFunction; } tnlVector(); Loading Loading @@ -137,16 +138,6 @@ class tnlVector : public tnlArray< Real, Device, Index > void computeExclusivePrefixSum( const IndexType begin, const IndexType end ); }; template< typename Real, typename Device, typename Index > class tnlFunctionType< tnlVector< Real, Device, Index > > { public: enum { Type = tnlDiscreteFunction }; }; #include <core/vectors/tnlVector_impl.h> #endif /* TNLVECTOR_H_ */ src/functors/CMakeLists.txt +1 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ SET( headers tnlFunctionDiscretizer.h tnlSinWaveFunction.h tnlSinWaveFunction_impl.h tnlTestFunction.h tnlFunctionType.h tnlFunction.h tnlTestFunction_impl.h ) SET( CURRENT_DIR ${CMAKE_SOURCE_DIR}/src/functors ) Loading src/functors/tnlConstantFunction.h +4 −11 Original line number Diff line number Diff line Loading @@ -20,14 +20,16 @@ #include <iostream> #include <core/vectors/tnlStaticVector.h> #include <functors/tnlFunctionType.h> #include <functors/tnlFunction.h> template< int FunctionDimensions, typename Real = double > class tnlConstantFunction class tnlConstantFunction : public tnlFunction { public: static constexpr tnlFunctionType getFunctionType() { return tnlAnalyticFunction; } enum { Dimensions = FunctionDimensions }; typedef Real RealType; typedef tnlStaticVector< Dimensions, Real > VertexType; Loading Loading @@ -80,15 +82,6 @@ std::ostream& operator << ( std::ostream& str, const tnlConstantFunction< Functi return str; } template< int FunctionDimensions, typename Real > class tnlFunctionType< tnlConstantFunction< FunctionDimensions, Real > > { public: enum { Type = tnlAnalyticFunction }; }; #include <functors/tnlConstantFunction_impl.h> #endif /* TNLCONSTANTFUNCTION_H_ */ src/functors/tnlExpBumpFunction.h +4 −12 Original line number Diff line number Diff line Loading @@ -20,13 +20,15 @@ #include <config/tnlParameterContainer.h> #include <core/vectors/tnlStaticVector.h> #include <functors/tnlFunctionType.h> #include <functors/tnlFunction.h> template< typename Real > class tnlExpBumpFunctionBase class tnlExpBumpFunctionBase : public tnlFunction { public: static constexpr tnlFunctionType getFunctionType() { return tnlAnalyticFunction; }; typedef Real RealType; bool setup( const tnlParameterContainer& parameters, Loading Loading @@ -143,16 +145,6 @@ ostream& operator << ( ostream& str, const tnlExpBumpFunction< Dimensions, Real return str; } template< int FunctionDimensions, typename Real > class tnlFunctionType< tnlExpBumpFunction< FunctionDimensions, Real > > { public: enum { Type = tnlAnalyticFunction }; }; #include <functors/tnlExpBumpFunction_impl.h> Loading Loading
src/core/vectors/tnlSharedVector.h +2 −11 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ #include <core/arrays/tnlSharedArray.h> #include <core/vectors/tnlVector.h> #include <functors/tnlFunctionType.h> #include <functors/tnlFunction.h> class tnlHost; Loading @@ -37,6 +37,7 @@ class tnlSharedVector : public tnlSharedArray< Real, Device, Index > typedef tnlSharedVector< Real, tnlHost, Index > HostType; typedef tnlSharedVector< Real, tnlCuda, Index > CudaType; static constexpr tnlFunctionType getFunctionType() { return tnlDiscreteFunction; } tnlSharedVector(); Loading Loading @@ -147,16 +148,6 @@ class tnlSharedVector : public tnlSharedArray< Real, Device, Index > }; template< typename Real, typename Device, typename Index > class tnlFunctionType< tnlSharedVector< Real, Device, Index > > { public: enum { Type = tnlDiscreteFunction }; }; #include <core/vectors/tnlSharedVector_impl.h> #endif /* TNLSHAREDVECTOR_H_ */
src/core/vectors/tnlVector.h +2 −11 Original line number Diff line number Diff line Loading @@ -19,7 +19,7 @@ #define TNLVECTOR_H_ #include <core/arrays/tnlArray.h> #include <functors/tnlFunctionType.h> #include <functors/tnlFunction.h> class tnlHost; Loading @@ -36,6 +36,7 @@ class tnlVector : public tnlArray< Real, Device, Index > typedef tnlVector< Real, tnlHost, Index > HostType; typedef tnlVector< Real, tnlCuda, Index > CudaType; static constexpr tnlFunctionType getFunctionType() { return tnlDiscreteFunction; } tnlVector(); Loading Loading @@ -137,16 +138,6 @@ class tnlVector : public tnlArray< Real, Device, Index > void computeExclusivePrefixSum( const IndexType begin, const IndexType end ); }; template< typename Real, typename Device, typename Index > class tnlFunctionType< tnlVector< Real, Device, Index > > { public: enum { Type = tnlDiscreteFunction }; }; #include <core/vectors/tnlVector_impl.h> #endif /* TNLVECTOR_H_ */
src/functors/CMakeLists.txt +1 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ SET( headers tnlFunctionDiscretizer.h tnlSinWaveFunction.h tnlSinWaveFunction_impl.h tnlTestFunction.h tnlFunctionType.h tnlFunction.h tnlTestFunction_impl.h ) SET( CURRENT_DIR ${CMAKE_SOURCE_DIR}/src/functors ) Loading
src/functors/tnlConstantFunction.h +4 −11 Original line number Diff line number Diff line Loading @@ -20,14 +20,16 @@ #include <iostream> #include <core/vectors/tnlStaticVector.h> #include <functors/tnlFunctionType.h> #include <functors/tnlFunction.h> template< int FunctionDimensions, typename Real = double > class tnlConstantFunction class tnlConstantFunction : public tnlFunction { public: static constexpr tnlFunctionType getFunctionType() { return tnlAnalyticFunction; } enum { Dimensions = FunctionDimensions }; typedef Real RealType; typedef tnlStaticVector< Dimensions, Real > VertexType; Loading Loading @@ -80,15 +82,6 @@ std::ostream& operator << ( std::ostream& str, const tnlConstantFunction< Functi return str; } template< int FunctionDimensions, typename Real > class tnlFunctionType< tnlConstantFunction< FunctionDimensions, Real > > { public: enum { Type = tnlAnalyticFunction }; }; #include <functors/tnlConstantFunction_impl.h> #endif /* TNLCONSTANTFUNCTION_H_ */
src/functors/tnlExpBumpFunction.h +4 −12 Original line number Diff line number Diff line Loading @@ -20,13 +20,15 @@ #include <config/tnlParameterContainer.h> #include <core/vectors/tnlStaticVector.h> #include <functors/tnlFunctionType.h> #include <functors/tnlFunction.h> template< typename Real > class tnlExpBumpFunctionBase class tnlExpBumpFunctionBase : public tnlFunction { public: static constexpr tnlFunctionType getFunctionType() { return tnlAnalyticFunction; }; typedef Real RealType; bool setup( const tnlParameterContainer& parameters, Loading Loading @@ -143,16 +145,6 @@ ostream& operator << ( ostream& str, const tnlExpBumpFunction< Dimensions, Real return str; } template< int FunctionDimensions, typename Real > class tnlFunctionType< tnlExpBumpFunction< FunctionDimensions, Real > > { public: enum { Type = tnlAnalyticFunction }; }; #include <functors/tnlExpBumpFunction_impl.h> Loading