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

Fixed tnl-diff.

parent b4611f42
No related branches found
No related tags found
1 merge request!1Hamilton jacobi
......@@ -68,14 +68,14 @@ int main( int argc, char* argv[] )
int dimensions = atoi( parsedMeshType[ 1 ].getString() );
if( dimensions == 1 )
{
if( parsedMeshType[ 1 ] == "float" )
if( parsedMeshType[ 2 ] == "float" )
{
typedef Meshes::Grid< 1, float, Devices::Host, int > MeshType;
if( ! processFiles< MeshType >( parameters ) )
return EXIT_FAILURE;
return EXIT_SUCCESS;
}
if( parsedMeshType[ 1 ] == "double" )
if( parsedMeshType[ 2 ] == "double" )
{
typedef Meshes::Grid< 1, double, Devices::Host, int > MeshType;
if( ! processFiles< MeshType >( parameters ) )
......@@ -85,14 +85,14 @@ int main( int argc, char* argv[] )
}
if( dimensions == 2 )
{
if( parsedMeshType[ 1 ] == "float" )
if( parsedMeshType[ 2 ] == "float" )
{
typedef Meshes::Grid< 2, float, Devices::Host, int > MeshType;
if( ! processFiles< MeshType >( parameters ) )
return EXIT_FAILURE;
return EXIT_SUCCESS;
}
if( parsedMeshType[ 1 ] == "double" )
if( parsedMeshType[ 2 ] == "double" )
{
typedef Meshes::Grid< 2, double, Devices::Host, int > MeshType;
if( ! processFiles< MeshType >( parameters ) )
......@@ -102,14 +102,14 @@ int main( int argc, char* argv[] )
}
if( dimensions == 3 )
{
if( parsedMeshType[ 1 ] == "float" )
if( parsedMeshType[ 2 ] == "float" )
{
typedef Meshes::Grid< 3, float, Devices::Host, int > MeshType;
if( ! processFiles< MeshType >( parameters ) )
return EXIT_FAILURE;
return EXIT_SUCCESS;
}
if( parsedMeshType[ 1 ] == "double" )
if( parsedMeshType[ 2 ] == "double" )
{
typedef Meshes::Grid< 3, double, Devices::Host, int > MeshType;
if( ! processFiles< MeshType >( parameters ) )
......
......@@ -300,6 +300,7 @@ bool computeDifference( const MeshPointer& meshPointer, const String& objectType
if( objectType == "Containers::Vector" ||
objectType == "tnlVector" || objectType == "tnlSharedVector" ) // TODO: remove deprecated type name
return computeDifferenceOfVectors< MeshPointer, Element, Real, Index >( meshPointer, parameters );
std::cerr << "Unknown object type " << objectType << "." << std::endl;
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment