Loading src/Benchmarks/HeatEquation/tnlTestNeighbourGridEntityGetter2D_impl.h +3 −3 Original line number Diff line number Diff line Loading @@ -134,9 +134,9 @@ class tnlTestNeighborGridEntityGetter< void refresh( const GridType& grid, const IndexType& entityIndex ) { #ifndef HAVE_CUDA // TODO: fix this to work with CUDA StaticFor< IndexType, -stencilSize, 0, StencilYRefresher >::exec( *this, entityIndex ); StaticFor< IndexType, 1, stencilSize + 1, StencilYRefresher >::exec( *this, entityIndex ); StaticFor< IndexType, -stencilSize, stencilSize + 1, StencilXRefresher >::exec( *this, entityIndex ); TemplateStaticFor< IndexType, -stencilSize, 0, StencilYRefresher >::exec( *this, entityIndex ); TemplateStaticFor< IndexType, 1, stencilSize + 1, StencilYRefresher >::exec( *this, entityIndex ); TemplateStaticFor< IndexType, -stencilSize, stencilSize + 1, StencilXRefresher >::exec( *this, entityIndex ); #endif }; Loading src/Examples/flow-sw/PhysicalVariablesGetter.h +1 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ class PhysicalVariablesGetter { const RealType e = energy.template getData< DeviceType >()( meshEntity ); const RealType rho = density.template getData< DeviceType >()( meshEntity ); const RealType momentumNorm = momentum.template getData< DeviceType >().getVector( meshEntity ).lpNorm( 2.0 ); const RealType momentumNorm = lpNorm( momentum.template getData< DeviceType >().getVector( meshEntity ), 2.0 ); if( rho == 0.0 ) return 0; else Loading src/Examples/flow-vl/PhysicalVariablesGetter.h +1 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ class PhysicalVariablesGetter { const RealType e = energy.template getData< DeviceType >()( meshEntity ); const RealType rho = density.template getData< DeviceType >()( meshEntity ); const RealType momentumNorm = momentum.template getData< DeviceType >().getVector( meshEntity ).lpNorm( 2.0 ); const RealType momentumNorm = lpNorm( momentum.template getData< DeviceType >().getVector( meshEntity ), 2.0 ); if( rho == 0.0 ) return 0; else Loading src/Examples/flow/PhysicalVariablesGetter.h +1 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ class PhysicalVariablesGetter { const RealType e = energy.template getData< DeviceType >()( meshEntity ); const RealType rho = density.template getData< DeviceType >()( meshEntity ); const RealType momentumNorm = momentum.template getData< DeviceType >().getVector( meshEntity ).lpNorm( 2.0 ); const RealType momentumNorm = lpNorm( momentum.template getData< DeviceType >().getVector( meshEntity ), 2.0 ); if( rho == 0.0 ) return 0; else Loading src/Examples/inviscid-flow-sw/PhysicalVariablesGetter.h +1 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ class PhysicalVariablesGetter { const RealType e = energy.template getData< DeviceType >()( meshEntity ); const RealType rho = density.template getData< DeviceType >()( meshEntity ); const RealType momentumNorm = momentum.template getData< DeviceType >().getVector( meshEntity ).lpNorm( 2.0 ); const RealType momentumNorm = lpNorm( momentum.template getData< DeviceType >().getVector( meshEntity ), 2.0 ); if( rho == 0.0 ) return 0; else Loading Loading
src/Benchmarks/HeatEquation/tnlTestNeighbourGridEntityGetter2D_impl.h +3 −3 Original line number Diff line number Diff line Loading @@ -134,9 +134,9 @@ class tnlTestNeighborGridEntityGetter< void refresh( const GridType& grid, const IndexType& entityIndex ) { #ifndef HAVE_CUDA // TODO: fix this to work with CUDA StaticFor< IndexType, -stencilSize, 0, StencilYRefresher >::exec( *this, entityIndex ); StaticFor< IndexType, 1, stencilSize + 1, StencilYRefresher >::exec( *this, entityIndex ); StaticFor< IndexType, -stencilSize, stencilSize + 1, StencilXRefresher >::exec( *this, entityIndex ); TemplateStaticFor< IndexType, -stencilSize, 0, StencilYRefresher >::exec( *this, entityIndex ); TemplateStaticFor< IndexType, 1, stencilSize + 1, StencilYRefresher >::exec( *this, entityIndex ); TemplateStaticFor< IndexType, -stencilSize, stencilSize + 1, StencilXRefresher >::exec( *this, entityIndex ); #endif }; Loading
src/Examples/flow-sw/PhysicalVariablesGetter.h +1 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ class PhysicalVariablesGetter { const RealType e = energy.template getData< DeviceType >()( meshEntity ); const RealType rho = density.template getData< DeviceType >()( meshEntity ); const RealType momentumNorm = momentum.template getData< DeviceType >().getVector( meshEntity ).lpNorm( 2.0 ); const RealType momentumNorm = lpNorm( momentum.template getData< DeviceType >().getVector( meshEntity ), 2.0 ); if( rho == 0.0 ) return 0; else Loading
src/Examples/flow-vl/PhysicalVariablesGetter.h +1 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ class PhysicalVariablesGetter { const RealType e = energy.template getData< DeviceType >()( meshEntity ); const RealType rho = density.template getData< DeviceType >()( meshEntity ); const RealType momentumNorm = momentum.template getData< DeviceType >().getVector( meshEntity ).lpNorm( 2.0 ); const RealType momentumNorm = lpNorm( momentum.template getData< DeviceType >().getVector( meshEntity ), 2.0 ); if( rho == 0.0 ) return 0; else Loading
src/Examples/flow/PhysicalVariablesGetter.h +1 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ class PhysicalVariablesGetter { const RealType e = energy.template getData< DeviceType >()( meshEntity ); const RealType rho = density.template getData< DeviceType >()( meshEntity ); const RealType momentumNorm = momentum.template getData< DeviceType >().getVector( meshEntity ).lpNorm( 2.0 ); const RealType momentumNorm = lpNorm( momentum.template getData< DeviceType >().getVector( meshEntity ), 2.0 ); if( rho == 0.0 ) return 0; else Loading
src/Examples/inviscid-flow-sw/PhysicalVariablesGetter.h +1 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ class PhysicalVariablesGetter { const RealType e = energy.template getData< DeviceType >()( meshEntity ); const RealType rho = density.template getData< DeviceType >()( meshEntity ); const RealType momentumNorm = momentum.template getData< DeviceType >().getVector( meshEntity ).lpNorm( 2.0 ); const RealType momentumNorm = lpNorm( momentum.template getData< DeviceType >().getVector( meshEntity ), 2.0 ); if( rho == 0.0 ) return 0; else Loading