Commit 69870fc5 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Removed Array::touch method

It has not been implemented in the past decade so it can be safely
assumed that it is useless.
parent fbceed2d
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -118,14 +118,6 @@ class Array : public Object
       */
      operator bool() const;

      //! This method measures data transfers done by this vector.
      /*!
       * Every time one touches this grid touches * size * sizeof( Real ) bytes are added
       * to transfered bytes in tnlStatistics.
       */
      template< typename IndexType2 = Index >
      void touch( IndexType2 touches = 1 ) const;

      //! Method for saving the object to a file as a binary data.
      bool save( File& file ) const;

+0 −9
Original line number Diff line number Diff line
@@ -468,15 +468,6 @@ Array< Element, Device, Index >::operator bool() const
}


template< typename Element,
          typename Device,
          typename Index >
   template< typename IndexType2 >
void Array< Element, Device, Index >::touch( IndexType2 touches ) const
{
   //TODO: implement
}

template< typename Element,
          typename Device,
          typename Index >
+0 −26
Original line number Diff line number Diff line
@@ -257,16 +257,6 @@ void Merson< Problem >::computeKFunctions( DofVectorPointer& u,
   RealType* _kAux = kAux->getData();
   RealType* _u = u->getData();

   /****
    * Compute data transfers statistics
    */
   k1->touch( 4 );
   k2->touch( 1 );
   k3->touch( 2 );
   k4->touch( 1 );
   kAux->touch( 4 );
   u->touch( 4 );

   RealType tau_3 = tau / 3.0;

   if( std::is_same< DeviceType, Devices::Host >::value )
@@ -374,14 +364,6 @@ typename Problem :: RealType Merson< Problem > :: computeError( const RealType t
   const RealType* _k5 = k5->getData();
   RealType* _kAux = kAux->getData();

   /****
    * Compute data transfers statistics
    */
   k1->touch();
   k3->touch();
   k4->touch();
   k5->touch();

   RealType eps( 0.0 ), maxEps( 0.0 );
   if( std::is_same< DeviceType, Devices::Host >::value )
   {
@@ -449,14 +431,6 @@ void Merson< Problem >::computeNewTimeLevel( const RealType time,
   RealType* _k4 = k4->getData();
   RealType* _k5 = k5->getData();

   /****
    * Compute data transfers statistics
    */
   u->touch();
   k1->touch();
   k4->touch();
   k5->touch();

   if( std::is_same< DeviceType, Devices::Host >::value )
   {
#ifdef HAVE_OPENMP