Commit 75f016cd authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Implenting heat equation benchmark.

parent 33fc64cf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -153,12 +153,12 @@ operator()( const MeshFunction& u,
   const IndexType& north = neighbourEntities.template getEntityIndex<  0,  1 >(); 
   const IndexType& south = neighbourEntities.template getEntityIndex<  0, -1 >(); */

   /*const IndexType& xSize = entity.getMesh().getDimensions().x();
   const IndexType& xSize = entity.getMesh().getDimensions().x();
   const IndexType& c = entity.getIndex();
   const RealType& hxSquareInverse = entity.getMesh().template getSpaceStepsProducts< -2, 0 >(); 
   const RealType& hySquareInverse = entity.getMesh().template getSpaceStepsProducts< 0, -2 >(); 
   return ( u[ c - 1 ] - 2.0 * u[ c ] + u[ c + 1 ]  ) * hxSquareInverse +
          ( u[ c - xSize ] - 2.0 * u[ c ] + u[ c + xSize ] ) * hySquareInverse;*/
          ( u[ c - xSize ] - 2.0 * u[ c ] + u[ c + xSize ] ) * hySquareInverse;
}

template< typename MeshReal,