diff --git a/src/implementation/mesh/tnlGrid2D_impl.h b/src/implementation/mesh/tnlGrid2D_impl.h index fc8ce7630865604cb71a7abcabbd32e1d3e2938d..b475d06f44c2969dbb1a1545615ece0efd8bf9af 100644 --- a/src/implementation/mesh/tnlGrid2D_impl.h +++ b/src/implementation/mesh/tnlGrid2D_impl.h @@ -194,8 +194,8 @@ template< typename Real, void tnlGrid< 2, Real, Device, Index, Geometry > :: getElementCoordinates( const Index element, CoordinatesType& coordinates ) const { - tnlAssert( i >= 0 && i < dofs, - cerr << " i = " << i << " dofs = " << dofs + tnlAssert( element >= 0 && element < dofs, + cerr << " element = " << element << " dofs = " << dofs << " in tnlGrid " << this -> getName(); ); coordinates. x() = element % this -> dimensions. x(); diff --git a/src/implementation/mesh/tnlIdenticalGridGeometry_impl.h b/src/implementation/mesh/tnlIdenticalGridGeometry_impl.h index f288d9edbe4d2e2c0a7c3900290d11c36396b7bb..fdc91b8605113d4c46e634c510e2f918e7c16041 100644 --- a/src/implementation/mesh/tnlIdenticalGridGeometry_impl.h +++ b/src/implementation/mesh/tnlIdenticalGridGeometry_impl.h @@ -97,7 +97,7 @@ template< Index dx > void tnlIdenticalGridGeometry< 1, Real, Device, Index > :: getEdgeNormal( const Index i, VertexType& normal ) const { - tnlAssert( dx == 1 || dx == -1, cerr << " dx = " << dx << " dy = " << dy << endl ); + tnlAssert( dx == 1 || dx == -1, cerr << " dx = " << dx << endl ); normal. x() = dx; } diff --git a/src/implementation/schemes/euler/fvm/tnlLaxFridrichs_impl.h b/src/implementation/schemes/euler/fvm/tnlLaxFridrichs_impl.h index 352924c31a91e4889209bf72f1612d7dc20c4d36..44b2bf9abb1d7a9355cc89c8024e38162f72c729 100644 --- a/src/implementation/schemes/euler/fvm/tnlLaxFridrichs_impl.h +++ b/src/implementation/schemes/euler/fvm/tnlLaxFridrichs_impl.h @@ -31,6 +31,9 @@ tnlLaxFridrichs< tnlGrid< 2, Real, Device, Index, GridGeometry >, mesh( 0 ), pressureGradient( 0 ) { + rho. setName( "Lax-Fridrichs:rho" ); + rho_u1. setName( "Lax-Fridrichs:rho_u1" ); + rho_u2. setName( "Lax-Fridrichs:rho_u2" ); } template< typename Real,