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

Added grids with float to tnl-diff.

parent b4d605d1
Loading
Loading
Loading
Loading
+42 −10
Original line number Diff line number Diff line
@@ -67,25 +67,57 @@ int main( int argc, char* argv[] )
   {
      int dimensions = atoi( parsedMeshType[ 1 ].getString() );
      if( dimensions == 1 )
      {
         if( parsedMeshType[ 1 ] == "float" )
         {
            typedef Meshes::Grid< 1, float, Devices::Host, int > MeshType;
            if( ! processFiles< MeshType >( parameters ) )
               return EXIT_FAILURE;
            return EXIT_SUCCESS;
         }
         if( parsedMeshType[ 1 ] == "double" )
         {
            typedef Meshes::Grid< 1, double, Devices::Host, int > MeshType;
            if( ! processFiles< MeshType >( parameters ) )
               return EXIT_FAILURE;
            return EXIT_SUCCESS;
         }
      }
      if( dimensions == 2 )
      {
         if( parsedMeshType[ 1 ] == "float" )
         {
            typedef Meshes::Grid< 2, float, Devices::Host, int > MeshType;
            if( ! processFiles< MeshType >( parameters ) )
               return EXIT_FAILURE;
            return EXIT_SUCCESS;
         }
         if( parsedMeshType[ 1 ] == "double" )
         {
            typedef Meshes::Grid< 2, double, Devices::Host, int > MeshType;
            if( ! processFiles< MeshType >( parameters ) )
               return EXIT_FAILURE;
            return EXIT_SUCCESS;
         }
      }
      if( dimensions == 3 )
      {
         typedef Meshes::Grid< 3, double, Devices::Host, int > MeshType;
         if( parsedMeshType[ 1 ] == "float" )
         {
            typedef Meshes::Grid< 3, float, Devices::Host, int > MeshType;
            if( ! processFiles< MeshType >( parameters ) )
               return EXIT_FAILURE;
            return EXIT_SUCCESS;
         }
         if( parsedMeshType[ 1 ] == "double" )
         {
            typedef Meshes::Grid< 3, double, Devices::Host, int > MeshType;
            if( ! processFiles< MeshType >( parameters ) )
               return EXIT_FAILURE;
            return EXIT_SUCCESS;
         }
      }
   }
   return EXIT_FAILURE;
}