Commit aff55a97 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Merge branch 'static-vector' into 'develop'

Static vector

See merge request !35
parents db5df5a2 cc100c1b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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
      };
      
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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