From 688e3bd16627f28cc867393521569919463a0bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkovsky@mmg.fjfi.cvut.cz> Date: Sun, 25 Aug 2019 15:08:47 +0200 Subject: [PATCH] Removed useless includes and specialization of SubdomainOverlapsGetter --- src/TNL/Containers/StaticVector.h | 1 - src/TNL/Containers/StaticVector.hpp | 1 - src/TNL/Functions/MeshFunction.h | 2 -- .../SubdomainOverlapsGetter.h | 24 ------------------- 4 files changed, 28 deletions(-) diff --git a/src/TNL/Containers/StaticVector.h b/src/TNL/Containers/StaticVector.h index 8e36cde09f..75f062a804 100644 --- a/src/TNL/Containers/StaticVector.h +++ b/src/TNL/Containers/StaticVector.h @@ -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 { diff --git a/src/TNL/Containers/StaticVector.hpp b/src/TNL/Containers/StaticVector.hpp index fecf68e494..cc5a6a4483 100644 --- a/src/TNL/Containers/StaticVector.hpp +++ b/src/TNL/Containers/StaticVector.hpp @@ -11,7 +11,6 @@ #pragma once #include <TNL/Containers/StaticVector.h> -#include <TNL/Containers/StaticVectorExpressions.h> #include <TNL/Containers/Algorithms/VectorAssignment.h> namespace TNL { diff --git a/src/TNL/Functions/MeshFunction.h b/src/TNL/Functions/MeshFunction.h index 3f5b82aed8..f7d6749c9a 100644 --- a/src/TNL/Functions/MeshFunction.h +++ b/src/TNL/Functions/MeshFunction.h @@ -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> diff --git a/src/TNL/Meshes/DistributedMeshes/SubdomainOverlapsGetter.h b/src/TNL/Meshes/DistributedMeshes/SubdomainOverlapsGetter.h index 6bdc252ec2..851ff66273 100644 --- a/src/TNL/Meshes/DistributedMeshes/SubdomainOverlapsGetter.h +++ b/src/TNL/Meshes/DistributedMeshes/SubdomainOverlapsGetter.h @@ -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 -- GitLab