Commit 4a717040 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Fixing the linear grid geometry.

parent 8a310613
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -299,7 +299,7 @@ void tnlLinearGridGeometry< 2, Real, Device, Index > :: getVertex( const Coordin
   {
      //y = proportions. y() * pow( y / proportions. y(), 2.0 );
      Index i( 0 );
      while( ySegments[ i ] < y && i < this -> numberOfSegments ) i++;
      while( ySegments[ i ] <= y && i < this -> numberOfSegments - 1 ) i++;
      tnlAssert( i > 0, cerr << " i = " << i  ;)
      const RealType y0 = ySegments[ i - 1 ];
      const RealType y1 = ySegments[ i ];