Commit 83a7e9a7 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Deleted obsolete files (added mistakenly during a merge)

parent 40648bc6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -15,4 +15,4 @@ set( tnl_implementation_operators_godunov_SOURCES
     ${common_SOURCES}
     PARENT_SCOPE )

INSTALL( FILES ${headers} DESTINATION include/tnl-${tnlVersion}/implementation/operators/godunov )
INSTALL( FILES ${headers} DESTINATION include/tnl-${tnlVersion}/TNL/Operators/Godunov/ )
+1 −1
Original line number Diff line number Diff line
@@ -21,4 +21,4 @@ set( tnl_implementation_operators_godunov-eikonal_SOURCES
     ${common_SOURCES}
     PARENT_SCOPE )

INSTALL( FILES ${headers} DESTINATION include/tnl-${tnlVersion}/implementation/operators/godunov-eikonal )
INSTALL( FILES ${headers} DESTINATION include/tnl-${tnlVersion}/TNL/Operators/Godunov-Eikonal/ )
+1 −1
Original line number Diff line number Diff line
@@ -14,4 +14,4 @@ set( tnl_implementation_operators_godunov_SOURCES
     ${common_SOURCES}
     PARENT_SCOPE )

INSTALL( FILES ${headers} DESTINATION include/tnl-${tnlVersion}/implementation/operators/godunov )
INSTALL( FILES ${headers} DESTINATION include/tnl-${tnlVersion}/TNL/Operators/Godunov/ )

src/core/tnlTypeInfo.h

deleted100644 → 0
+0 −39
Original line number Diff line number Diff line
/* 
 * File:   tnlTypeInfo.h
 * Author: oberhuber
 *
 * Created on July 14, 2016, 3:46 PM
 */

#pragma once

#include <limits>

template< typename Type >
class tnlTypeInfo
{   
};

template<>
class tnlTypeInfo< double >
{
   public:
      
      typedef double Type;
      
      static __cuda_callable__
      Type getMaxValue() { return DBL_MAX; };
};

template<>
class tnlTypeInfo< float >
{
   public:
      
      typedef float Type;
      
      static __cuda_callable__
      Type getMaxValue() { return FLT_MAX; };
};

src/functions/tnlFunctions.h

deleted100644 → 0
+0 −52
Original line number Diff line number Diff line
/* 
 * File:   tnlFunctions.h
 * Author: oberhuber
 *
 * Created on July 11, 2016, 6:01 PM
 */

#pragma once

#include <core/tnlCuda.h>

template< typename Real >
__cuda_callable__
Real sign( const Real& x, const Real& smoothing = 0.0 )
{
   if( x > smoothing )
      return 1.0;
   else if( x < -smoothing )
      return -1.0;
   if( smoothing == 0.0 )
      return 0.0;
   return sin( ( M_PI * x ) / ( 2.0 * smoothing ) );
}

template< typename Real >
__cuda_callable__
Real positivePart( const Real& arg)
{
   return arg > 0.0 ? arg : 0.0;
}

template< typename Real >
__cuda_callable__
Real negativePart( const Real& arg)
{
   return arg < 0.0 ? arg : 0.0;
}

template< typename Real >
__cuda_callable__
Real ArgAbsMin( const Real& x, const Real& y )
{
   return fabs( x ) < fabs( y ) ?  x : y;
}

template< typename Real >
__cuda_callable__
Real ArgAbsMax( const Real& x, const Real& y )
{
   return fabs( x ) > fabs( y ) ?  x : y;
}
Loading