Loading src/Tools/tnl-diff.cpp +42 −10 Original line number Diff line number Diff line Loading @@ -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; } Loading Loading
src/Tools/tnl-diff.cpp +42 −10 Original line number Diff line number Diff line Loading @@ -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; } Loading