Commit 0865f702 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed compilation of tnl-view

parent 5e48daaa
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -213,10 +213,12 @@ bool convertObject( const MeshPointer& meshPointer,
       parsedObjectType[ 0 ] == "tnlSharedVector" ||   // TODO: remove deprecated type names
       parsedObjectType[ 0 ] == "tnlVector" )          //
   {
      Containers::Vector< Element, Devices::Host, Index > vector;
      using MeshType = typename MeshPointer::ObjectType;
      // FIXME: why is MeshType::IndexType not the same as Index?
//      Containers::Vector< Element, Devices::Host, Index > vector;
      Containers::Vector< Element, Devices::Host, typename MeshType::IndexType > vector;
      if( ! vector.load( inputFileName ) )
         return false;
      using MeshType = typename MeshPointer::ObjectType;
      Functions::MeshFunction< MeshType, MeshType::meshDimensions, Element > mf;
      mf.bind( meshPointer, vector );
      if( ! mf.write( outputFileName, outputFormat ) )