Commit a266aaf4 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Cleaned up DummyMesh

parent 2b037e77
Loading
Loading
Loading
Loading
+0 −22
Original line number Diff line number Diff line
@@ -29,19 +29,6 @@ public:
 
   constexpr static int getMeshDimension() { return 1; }
 
   const Real& getParametricStep(){ return 0.0; }
 
   String getSerializationType() const { return String( "DummyMesh" ); }

   template< typename GridFunction >
   typename GridFunction::RealType getDifferenceAbsMax( const GridFunction& f1,
                                                        const GridFunction& f2 ) const { return 0.0; }

   template< typename GridFunction >
   typename GridFunction::RealType getDifferenceLpNorm( const GridFunction& f1,
                                                        const GridFunction& f2,
                                                        const typename GridFunction::RealType& p ) const { return 0.0; }

   void save( File& file ) const {}

   void load( File& file ) {}
@@ -49,15 +36,6 @@ public:
   void save( const String& fileName ) const {}

   void load( const String& fileName ) {}

   bool writeMesh( const String& fileName,
                   const String& format ) const { return true; }


   template< typename MeshFunction >
   bool write( const MeshFunction& function,
                const String& fileName,
                const String& format ) const { return true; }
};

} // namespace Meshes
+0 −7
Original line number Diff line number Diff line
@@ -10,7 +10,6 @@

#include "tnl-diff.h"
#include <TNL/Config/parseCommandLine.h>
#include <TNL/Meshes/DummyMesh.h>
#include <TNL/Meshes/Grid.h>

void setupConfig( Config::ConfigDescription& config )
@@ -41,12 +40,6 @@ int main( int argc, char* argv[] )
      return EXIT_FAILURE;

   String meshFile = parameters.getParameter< String >( "mesh" );
   /*if( meshFile == "" )
   {
      if( ! processFiles< DummyMesh< double, Devices::Host, int > >( parameters ) )
         return EXIT_FAILURE;
      return EXIT_SUCCESS;
   }*/
   const String meshType = getObjectType( meshFile );
   std::cout << meshType << " detected in " << meshFile << " file." << std::endl;
   const std::vector< String > parsedMeshType = parseObjectType( meshType );
+0 −1
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@
#include <TNL/File.h>
#include <TNL/Config/parseCommandLine.h>
#include <TNL/Functions/TestFunction.h>
#include <TNL/Meshes/DummyMesh.h>
#include <TNL/Meshes/Grid.h>

#include <TNL/Communicators/MpiCommunicator.h>
+0 −1
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@
#include <cstdlib>
#include <TNL/File.h>
#include <TNL/Config/parseCommandLine.h>
#include <TNL/Meshes/DummyMesh.h>
#include <TNL/Meshes/Grid.h>
#include <TNL/Meshes/TypeResolver/TypeResolver.h>