Commit f0e64f4b authored by Vít Hanousek's avatar Vít Hanousek
Browse files

Fix DistributedGrid_Base - add missing getEntitiesCount - providing global...

Fix DistributedGrid_Base - add missing getEntitiesCount - providing global grid entity count - used in tnl-lbm
parent b0a81860
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -49,13 +49,6 @@ class DistributedMesh< Grid< 1, RealType, Device, Index > > : public Distributed
       
      int getRight() const;
            
/*      template< int EntityDimension >
      IndexType getEntitiesCount() const;

      template< typename Entity >
      IndexType getEntitiesCount() const;   */   
     
      
      void writeProlog( Logger& logger ) const;       
      

+0 −19
Original line number Diff line number Diff line
@@ -24,25 +24,6 @@ setup( const Config::ParameterContainer& parameters,
   return true;
}      

/*
template< typename RealType, typename Device, typename Index >     
   template< int EntityDimension >
Index
DistributedMesh< Grid< 1, RealType, Device, Index > >::
getEntitiesCount() const
{
   return this->globalGrid. template getEntitiesCount< EntityDimension >();
}

template< typename RealType, typename Device, typename Index >     
   template< typename Entity >
Index
DistributedMesh< Grid< 1, RealType, Device, Index > >::
getEntitiesCount() const
{
   return this->globalGrid. template getEntitiesCount< Entity >();
}*/

template< typename RealType, typename Device, typename Index >     
   template< typename CommunicatorType>
void
+0 −6
Original line number Diff line number Diff line
@@ -33,12 +33,6 @@ class DistributedMesh< Grid< 2, RealType, Device, Index > >: public DistributedG
      typedef typename DistributedGrid_Base<2, RealType, Device, Index >::GridType GridType;
      typedef typename DistributedGrid_Base<2, RealType, Device, Index >::PointType PointType;

/*      template< int EntityDimension >
      IndexType getEntitiesCount() const;

      template< typename Entity >
      IndexType getEntitiesCount() const;*/

      bool setup( const Config::ParameterContainer& parameters,
                  const String& prefix );
      
+0 −18
Original line number Diff line number Diff line
@@ -14,24 +14,6 @@ namespace TNL {
   namespace Meshes { 
      namespace DistributedMeshes {

/*template< typename RealType, typename Device, typename Index >     
   template< int EntityDimension >
Index
DistributedMesh< Grid< 2, RealType, Device, Index > >::
getEntitiesCount() const
{
   return this->globalGrid. template getEntitiesCount< EntityDimension >();
}

template< typename RealType, typename Device, typename Index >     
   template< typename Entity >
Index
DistributedMesh< Grid< 2, RealType, Device, Index > >::
getEntitiesCount() const
{
   return this->globalGrid. template getEntitiesCount< Entity >();
}*/

template< typename RealType, typename Device, typename Index >
bool
DistributedMesh< Grid< 2, RealType, Device, Index > >::
+0 −6
Original line number Diff line number Diff line
@@ -47,12 +47,6 @@ class DistributedMesh<Grid< 3, RealType, Device, Index >> : public DistributedGr
      bool setup( const Config::ParameterContainer& parameters,
                  const String& prefix );

/*      template< int EntityDimension >
      IndexType getEntitiesCount() const;

      template< typename Entity >
      IndexType getEntitiesCount() const;   */   

      template< typename CommunicatorType > 
      void setGlobalGrid( const GridType& globalGrid,
                          const CoordinatesType& overlap );
Loading