Loading tests/benchmarks/heat-equation-benchmark/BenchmarkLaplace_impl.h +2 −2 Original line number Diff line number Diff line Loading @@ -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, Loading Loading
tests/benchmarks/heat-equation-benchmark/BenchmarkLaplace_impl.h +2 −2 Original line number Diff line number Diff line Loading @@ -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, Loading