Commit ce1886b6 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

MeshFunction refactoring.

parent cd5d21ac
Loading
Loading
Loading
Loading
+50 −53
Original line number Diff line number Diff line
@@ -58,7 +58,6 @@ class MeshFunction :
                    Vector& data,
                    const IndexType& offset = 0 );

      
      template< typename Vector >
      MeshFunction( const MeshPointer& meshPointer,
                    Pointers::SharedPointer<  Vector >& data,
@@ -123,16 +122,15 @@ class MeshFunction :
      template< typename EntityType >
      __cuda_callable__
      RealType& operator()( const EntityType& meshEntity,
                            const RealType& time = 0.0 );
                            const RealType& time = 0 );

      template< typename EntityType >
      __cuda_callable__
      const RealType& operator()( const EntityType& meshEntity,
                                  const RealType& time = 0.0 ) const;
                                  const RealType& time = 0 ) const;

      __cuda_callable__
      RealType& operator[]( const IndexType& meshEntityIndex );
 
      __cuda_callable__
      const RealType& operator[]( const IndexType& meshEntityIndex ) const;

@@ -171,7 +169,6 @@ class MeshFunction :
                        const Pointers::SharedPointer< PeriodicBoundariesMaskType, DeviceType >& mask =
                        Pointers::SharedPointer< PeriodicBoundariesMaskType, DeviceType >( nullptr ) );

 
   protected:

      //DistributedMeshSynchronizerType synchronizer;
+2 −5
Original line number Diff line number Diff line
@@ -48,7 +48,6 @@ template< typename Mesh,
MeshFunction< Mesh, MeshEntityDimension, Real >::
MeshFunction( const ThisType& meshFunction )
{

    setupSynchronizer(meshFunction.meshPointer->getDistributedMesh());

   this->meshPointer=meshFunction.meshPointer;
@@ -241,7 +240,6 @@ bind( const MeshPointer& meshPointer,
   this->data.bind( *data, offset, getMesh().template getEntitiesCount< typename Mesh::template EntityType< MeshEntityDimension > >() );
}


template< typename Mesh,
          int MeshEntityDimension,
          typename Real >
@@ -578,7 +576,6 @@ operator << ( std::ostream& str, const MeshFunction< Mesh, MeshEntityDimension,
   return str;
}


   } // namespace Functions
} // namespace TNL