Commit 61bbab4a authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Fixing the linear grid geometry.

parent 62d1b7f6
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ void tnlLinearGridGeometry< 1, Real, Device, Index > :: getElementCenter( const
                                                                          VertexType& center ) const
{
   center. x() = ( coordinates. x() + 0.5 ) * parametricStep. x();
   //getVertex<0, 0>(coordinates, origin, center);
}

template< typename Real,
@@ -185,8 +186,7 @@ void tnlLinearGridGeometry< 2, Real, Device, Index > :: getElementCenter( const
                                                                          const CoordinatesType& coordinates,
                                                                          VertexType& center ) const
{
   center. x() = ( coordinates. x() + 0.5 ) * parametricStep. x();
   center. y() = ( coordinates. y() + 0.5 ) * parametricStep. y();
   getVertex<0, 0>( coordinates, origin, center );
}

template< typename Real,
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@
#include <mesh/tnlGrid.h>
#include <mesh/tnlIdenticalGridGeometry.h>
#include <core/tnlHost.h>
#include <core/tnlSharedVector.h>
#include <core/vectors/tnlSharedVector.h>

template< typename Mesh >
class tnlLinearDiffusion
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
#ifndef TNLLAXFRIDRICHS_H_
#define TNLLAXFRIDRICHS_H_

#include <core/tnlSharedVector.h>
#include <core/vectors/tnlSharedVector.h>
#include <mesh/tnlGrid.h>
#include <mesh/tnlIdenticalGridGeometry.h>
#include <schemes/gradient/tnlCentralFDMGradient.h>