Loading src/TNL/Containers/List_impl.h +1 −1 Original line number Diff line number Diff line /*************************************************************************** TNL::Containers::List_impl.h - description List_impl.h - description ------------------- begin : Mar, 5 Apr 2016 12:46 PM copyright : (C) 2016 by Tomas Oberhuber Loading src/Tools/tnl-diff.h +5 −5 Original line number Diff line number Diff line Loading @@ -298,7 +298,7 @@ bool computeDifference( const MeshPointer& meshPointer, const String& objectType objectType == "tnlMeshFunction" ) // TODO: remove deprecated type name return computeDifferenceOfMeshFunctions< MeshPointer, Element, Real, Index >( meshPointer, parameters ); if( objectType == "Containers::Vector" || objectType == "TNL::Containers::Vector" || objectType == "tnlSharedVector" ) // TODO: remove deprecated type name objectType == "tnlVector" || objectType == "tnlSharedVector" ) // TODO: remove deprecated type name return computeDifferenceOfVectors< MeshPointer, Element, Real, Index >( meshPointer, parameters ); return false; } Loading @@ -312,12 +312,12 @@ bool setIndexType( const MeshPointer& meshPointer, { String indexType; if( parsedObjectType[ 0 ] == "Containers::MultiVector" || parsedObjectType[ 0 ] == "TNL::Containers::MultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlMultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlSharedMultiVector" ) // indexType = parsedObjectType[ 4 ]; if( parsedObjectType[ 0 ] == "Containers::Vector" || parsedObjectType[ 0 ] == "tnlSharedVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "TNL::Containers::Vector" ) // parsedObjectType[ 0 ] == "tnlVector" ) // indexType = parsedObjectType[ 3 ]; if( parsedObjectType[ 0 ] == "Functions::MeshFunction" || Loading Loading @@ -392,7 +392,7 @@ bool setElementType( const MeshPointer& meshPointer, String elementType; if( parsedObjectType[ 0 ] == "Containers::MultiVector" || parsedObjectType[ 0 ] == "TNL::Containers::MultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlMultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlSharedMultiVector" ) // elementType = parsedObjectType[ 2 ]; if( parsedObjectType[ 0 ] == "Functions::MeshFunction" || Loading @@ -400,7 +400,7 @@ bool setElementType( const MeshPointer& meshPointer, elementType = parsedObjectType[ 3 ]; if( parsedObjectType[ 0 ] == "Containers::Vector" || parsedObjectType[ 0 ] == "tnlSharedVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "TNL::Containers::Vector" ) // parsedObjectType[ 0 ] == "tnlVector" ) // elementType = parsedObjectType[ 1 ]; Loading src/Tools/tnl-view.h +10 −10 Original line number Diff line number Diff line Loading @@ -279,7 +279,7 @@ bool convertObject( const MeshPointer& meshPointer, if( parsedObjectType[ 0 ] == "Containers::Vector" || parsedObjectType[ 0 ] == "tnlSharedVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "TNL::Containers::Vector" ) // parsedObjectType[ 0 ] == "tnlVector" ) // { using MeshType = typename MeshPointer::ObjectType; // FIXME: why is MeshType::GlobalIndexType not the same as Index? Loading @@ -294,7 +294,7 @@ bool convertObject( const MeshPointer& meshPointer, } if( parsedObjectType[ 0 ] == "Containers::MultiVector" || parsedObjectType[ 0 ] == "TNL::Containers::MultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlMultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlSharedMultiVector" ) // { Containers::MultiVector< Dimension, Element, Devices::Host, Index > multiVector; Loading @@ -321,11 +321,11 @@ bool setDimensions( const MeshPointer& meshPointer, { int dimensions( 0 ); if( parsedObjectType[ 0 ] == "Containers::MultiVector" || parsedObjectType[ 0 ] == "TNL::Containers::MultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlMultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlSharedMultiVector" ) // dimensions = atoi( parsedObjectType[ 1 ]. getString() ); if( parsedObjectType[ 0 ] == "Containers::Vector" || parsedObjectType[ 0 ] == "TNL::Containers::Vector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlSharedVector" ) // dimensions = 1; switch( dimensions ) Loading @@ -349,12 +349,12 @@ bool setIndexType( const MeshPointer& meshPointer, { String indexType; if( parsedObjectType[ 0 ] == "Containers::MultiVector" || parsedObjectType[ 0 ] == "TNL::Containers::MultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlMultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlSharedMultiVector" ) // indexType = parsedObjectType[ 4 ]; if( parsedObjectType[ 0 ] == "Containers::Vector" || parsedObjectType[ 0 ] == "tnlSharedVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "TNL::Containers::Vector" ) // parsedObjectType[ 0 ] == "tnlVector" ) // indexType = parsedObjectType[ 3 ]; if( indexType == "int" ) Loading Loading @@ -426,12 +426,12 @@ bool setElementType( const MeshPointer& meshPointer, // TODO: Fix this even for arrays if( parsedObjectType[ 0 ] == "Containers::MultiVector" || parsedObjectType[ 0 ] == "TNL::Containers::MultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlMultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlSharedMultiVector" ) // elementType = parsedObjectType[ 2 ]; if( parsedObjectType[ 0 ] == "Containers::Vector" || parsedObjectType[ 0 ] == "tnlSharedVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "TNL::Containers::Vector" ) // parsedObjectType[ 0 ] == "tnlVector" ) // elementType = parsedObjectType[ 1 ]; Loading Loading @@ -516,10 +516,10 @@ bool processFiles( const Config::ParameterContainer& parameters ) } if( parsedObjectType[ 0 ] == "Containers::MultiVector" || parsedObjectType[ 0 ] == "Containers::Vector" || parsedObjectType[ 0 ] == "TNL::Containers::MultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlMultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlSharedMultiVector" || // parsedObjectType[ 0 ] == "tnlSharedVector" || // parsedObjectType[ 0 ] == "TNL::Containers::Vector" ) // parsedObjectType[ 0 ] == "tnlVector" ) // setElementType< MeshPointer >( meshPointer, inputFiles[ i ], parsedObjectType, parameters ); if( parsedObjectType[ 0 ] == "Functions::MeshFunction" || parsedObjectType[ 0 ] == "tnlMeshFunction" ) // TODO: remove deprecated type names Loading Loading
src/TNL/Containers/List_impl.h +1 −1 Original line number Diff line number Diff line /*************************************************************************** TNL::Containers::List_impl.h - description List_impl.h - description ------------------- begin : Mar, 5 Apr 2016 12:46 PM copyright : (C) 2016 by Tomas Oberhuber Loading
src/Tools/tnl-diff.h +5 −5 Original line number Diff line number Diff line Loading @@ -298,7 +298,7 @@ bool computeDifference( const MeshPointer& meshPointer, const String& objectType objectType == "tnlMeshFunction" ) // TODO: remove deprecated type name return computeDifferenceOfMeshFunctions< MeshPointer, Element, Real, Index >( meshPointer, parameters ); if( objectType == "Containers::Vector" || objectType == "TNL::Containers::Vector" || objectType == "tnlSharedVector" ) // TODO: remove deprecated type name objectType == "tnlVector" || objectType == "tnlSharedVector" ) // TODO: remove deprecated type name return computeDifferenceOfVectors< MeshPointer, Element, Real, Index >( meshPointer, parameters ); return false; } Loading @@ -312,12 +312,12 @@ bool setIndexType( const MeshPointer& meshPointer, { String indexType; if( parsedObjectType[ 0 ] == "Containers::MultiVector" || parsedObjectType[ 0 ] == "TNL::Containers::MultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlMultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlSharedMultiVector" ) // indexType = parsedObjectType[ 4 ]; if( parsedObjectType[ 0 ] == "Containers::Vector" || parsedObjectType[ 0 ] == "tnlSharedVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "TNL::Containers::Vector" ) // parsedObjectType[ 0 ] == "tnlVector" ) // indexType = parsedObjectType[ 3 ]; if( parsedObjectType[ 0 ] == "Functions::MeshFunction" || Loading Loading @@ -392,7 +392,7 @@ bool setElementType( const MeshPointer& meshPointer, String elementType; if( parsedObjectType[ 0 ] == "Containers::MultiVector" || parsedObjectType[ 0 ] == "TNL::Containers::MultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlMultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlSharedMultiVector" ) // elementType = parsedObjectType[ 2 ]; if( parsedObjectType[ 0 ] == "Functions::MeshFunction" || Loading @@ -400,7 +400,7 @@ bool setElementType( const MeshPointer& meshPointer, elementType = parsedObjectType[ 3 ]; if( parsedObjectType[ 0 ] == "Containers::Vector" || parsedObjectType[ 0 ] == "tnlSharedVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "TNL::Containers::Vector" ) // parsedObjectType[ 0 ] == "tnlVector" ) // elementType = parsedObjectType[ 1 ]; Loading
src/Tools/tnl-view.h +10 −10 Original line number Diff line number Diff line Loading @@ -279,7 +279,7 @@ bool convertObject( const MeshPointer& meshPointer, if( parsedObjectType[ 0 ] == "Containers::Vector" || parsedObjectType[ 0 ] == "tnlSharedVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "TNL::Containers::Vector" ) // parsedObjectType[ 0 ] == "tnlVector" ) // { using MeshType = typename MeshPointer::ObjectType; // FIXME: why is MeshType::GlobalIndexType not the same as Index? Loading @@ -294,7 +294,7 @@ bool convertObject( const MeshPointer& meshPointer, } if( parsedObjectType[ 0 ] == "Containers::MultiVector" || parsedObjectType[ 0 ] == "TNL::Containers::MultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlMultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlSharedMultiVector" ) // { Containers::MultiVector< Dimension, Element, Devices::Host, Index > multiVector; Loading @@ -321,11 +321,11 @@ bool setDimensions( const MeshPointer& meshPointer, { int dimensions( 0 ); if( parsedObjectType[ 0 ] == "Containers::MultiVector" || parsedObjectType[ 0 ] == "TNL::Containers::MultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlMultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlSharedMultiVector" ) // dimensions = atoi( parsedObjectType[ 1 ]. getString() ); if( parsedObjectType[ 0 ] == "Containers::Vector" || parsedObjectType[ 0 ] == "TNL::Containers::Vector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlSharedVector" ) // dimensions = 1; switch( dimensions ) Loading @@ -349,12 +349,12 @@ bool setIndexType( const MeshPointer& meshPointer, { String indexType; if( parsedObjectType[ 0 ] == "Containers::MultiVector" || parsedObjectType[ 0 ] == "TNL::Containers::MultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlMultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlSharedMultiVector" ) // indexType = parsedObjectType[ 4 ]; if( parsedObjectType[ 0 ] == "Containers::Vector" || parsedObjectType[ 0 ] == "tnlSharedVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "TNL::Containers::Vector" ) // parsedObjectType[ 0 ] == "tnlVector" ) // indexType = parsedObjectType[ 3 ]; if( indexType == "int" ) Loading Loading @@ -426,12 +426,12 @@ bool setElementType( const MeshPointer& meshPointer, // TODO: Fix this even for arrays if( parsedObjectType[ 0 ] == "Containers::MultiVector" || parsedObjectType[ 0 ] == "TNL::Containers::MultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlMultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlSharedMultiVector" ) // elementType = parsedObjectType[ 2 ]; if( parsedObjectType[ 0 ] == "Containers::Vector" || parsedObjectType[ 0 ] == "tnlSharedVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "TNL::Containers::Vector" ) // parsedObjectType[ 0 ] == "tnlVector" ) // elementType = parsedObjectType[ 1 ]; Loading Loading @@ -516,10 +516,10 @@ bool processFiles( const Config::ParameterContainer& parameters ) } if( parsedObjectType[ 0 ] == "Containers::MultiVector" || parsedObjectType[ 0 ] == "Containers::Vector" || parsedObjectType[ 0 ] == "TNL::Containers::MultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlMultiVector" || // TODO: remove deprecated type names parsedObjectType[ 0 ] == "tnlSharedMultiVector" || // parsedObjectType[ 0 ] == "tnlSharedVector" || // parsedObjectType[ 0 ] == "TNL::Containers::Vector" ) // parsedObjectType[ 0 ] == "tnlVector" ) // setElementType< MeshPointer >( meshPointer, inputFiles[ i ], parsedObjectType, parameters ); if( parsedObjectType[ 0 ] == "Functions::MeshFunction" || parsedObjectType[ 0 ] == "tnlMeshFunction" ) // TODO: remove deprecated type names Loading