Loading src/Tools/tnl-diff.cpp +6 −6 Original line number Diff line number Diff line Loading @@ -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 ) ) Loading @@ -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 ) ) Loading @@ -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 ) ) Loading src/Tools/tnl-diff.h +1 −0 Original line number Diff line number Diff line Loading @@ -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; } Loading Loading
src/Tools/tnl-diff.cpp +6 −6 Original line number Diff line number Diff line Loading @@ -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 ) ) Loading @@ -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 ) ) Loading @@ -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 ) ) Loading
src/Tools/tnl-diff.h +1 −0 Original line number Diff line number Diff line Loading @@ -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; } Loading