Skip to content
Snippets Groups Projects
Commit b4611f42 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Added grids with float to tnl-diff.

parent b4d605d1
No related branches found
No related tags found
1 merge request!1Hamilton jacobi
......@@ -68,23 +68,55 @@ int main( int argc, char* argv[] )
int dimensions = atoi( parsedMeshType[ 1 ].getString() );
if( dimensions == 1 )
{
typedef Meshes::Grid< 1, double, Devices::Host, int > MeshType;
if( ! processFiles< MeshType >( parameters ) )
return EXIT_FAILURE;
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 )
{
typedef Meshes::Grid< 2, double, Devices::Host, int > MeshType;
if( ! processFiles< MeshType >( parameters ) )
return EXIT_FAILURE;
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( ! processFiles< MeshType >( parameters ) )
return EXIT_FAILURE;
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_SUCCESS;
}
return EXIT_FAILURE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment