Commit 688e3bd1 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Removed useless includes and specialization of SubdomainOverlapsGetter

parent 238c404b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -107,7 +107,6 @@ public:

#include <TNL/Containers/StaticVector.hpp>
#include <TNL/Containers/StaticVectorExpressions.h>
#include <TNL/Containers/Expressions/StaticExpressionTemplates.h>

// TODO: move to some other source file
namespace TNL {
+0 −1
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@
#pragma once

#include <TNL/Containers/StaticVector.h>
#include <TNL/Containers/StaticVectorExpressions.h>
#include <TNL/Containers/Algorithms/VectorAssignment.h>

namespace TNL {
+0 −2
Original line number Diff line number Diff line
@@ -12,8 +12,6 @@

#include <TNL/File.h>
#include <TNL/Functions/Domain.h>
#include <TNL/Functions/MeshFunctionGnuplotWriter.h>
#include <TNL/Functions/MeshFunctionVTKWriter.h>
#include <TNL/Pointers/SharedPointer.h>
#include <TNL/Meshes/DistributedMeshes/DistributedMesh.h>
#include <TNL/Meshes/DistributedMeshes/DistributedMeshSynchronizer.h>
+0 −24
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@
#pragma once

#include <TNL/Meshes/Grid.h>
#include <TNL/Meshes/Mesh.h>
#include <TNL/Meshes/DistributedMeshes/DistributedMesh.h>

namespace TNL {
@@ -23,29 +22,6 @@ template< typename Mesh,
class SubdomainOverlapsGetter
{};

template< typename MeshConfig,
          typename Device,
          typename Communicator >
class SubdomainOverlapsGetter< Mesh< MeshConfig, Device >, Communicator >
{
   public:
      
      using MeshType = Mesh< MeshConfig, Device >;
      using DeviceType = Device;
      using IndexType = typename MeshType::IndexType;
      using DistributedMeshType = DistributedMesh< MeshType >;
      using SubdomainOverlapsType = typename DistributedMeshType::SubdomainOverlapsType;
      using CommunicatorType = Communicator;
      
      // Computes subdomain overlaps
      // TODO: Its gonna be very likely different for Mesh than for Grid
      static void getOverlaps( const DistributedMeshType* distributedMesh,
                               SubdomainOverlapsType& lower,
                               SubdomainOverlapsType& upper,
                               IndexType subdomainOverlapSize,
                               const SubdomainOverlapsType& periodicBoundariesOverlapSize = 0 );
};

// TODO: Specializations by the grid dimension can be avoided when the MPI directions are 
// rewritten in a dimension independent way