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

Fixing Lp-norms in tnlGrid.

parent 0432237d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -261,7 +261,7 @@ template< typename Real,
      lpNorm += pow( p, tnlAbs( f1[ c ] - f2[ c ] ) ) *
         this->getElementMeasure( CoordinatesType( i ) );
   }
   return pow( 1.0 / p, lpNorm );
   return pow( lpNorm, 1.0 / p );
}


+1 −1
Original line number Diff line number Diff line
@@ -261,7 +261,7 @@ template< typename Real,
            lpNorm += pow( p, tnlAbs( f1[ c ] - f2[ c ] ) ) *
               this->getElementMeasure( CoordinatesType( i, j, k ) );
         }
   return pow( 1.0 / p, lpNorm );
   return pow( lpNorm, 1.0 / p );
}

template< typename Real,