Loading examples/hamilton-jacobi-parallel/tnlParallelEikonalSolver3D_impl.h +4 −1 Original line number Diff line number Diff line Loading @@ -1017,10 +1017,12 @@ void tnlParallelEikonalSolver<3,SchemeHost, SchemeDevice, Device, double, int>:: if(l == 0) { if(sharedTau[0] > 1.0 * this->subMesh.template getSpaceStepsProducts< 1, 0, 0 >()) sharedTau[0] = 1.0 * this->subMesh.template getSpaceStepsProducts< 1, 0, 0 >(); if(sharedTau[0] > 0.5 * this->subMesh.template getSpaceStepsProducts< 1, 0, 0 >()) sharedTau[0] = 0.5 * this->subMesh.template getSpaceStepsProducts< 1, 0, 0 >(); } else if(l == blockDim.x*blockDim.y*blockDim.z - 1) { if( time + sharedTau[l] > finalTime ) sharedTau[l] = finalTime - time; } if(l < 256) sharedTau[l] = Min(sharedTau[l],sharedTau[l+256]); Loading @@ -1030,6 +1032,7 @@ void tnlParallelEikonalSolver<3,SchemeHost, SchemeDevice, Device, double, int>:: if(l < 64) sharedTau[l] = Min(sharedTau[l],sharedTau[l+64]); __syncthreads(); if(l < 32) sharedTau[l] = Min(sharedTau[l],sharedTau[l+32]); __syncthreads(); if(l < 16) sharedTau[l] = Min(sharedTau[l],sharedTau[l+16]); if(l < 8) sharedTau[l] = Min(sharedTau[l],sharedTau[l+8]); if(l < 4) sharedTau[l] = Min(sharedTau[l],sharedTau[l+4]); Loading src/operators/godunov-eikonal/parallelGodunovEikonal.h +5 −5 Original line number Diff line number Diff line Loading @@ -88,6 +88,7 @@ public: #endif bool init( const tnlParameterContainer& parameters ); RealType epsilon; protected: Loading @@ -97,7 +98,7 @@ protected: RealType h; RealType epsilon; }; Loading Loading @@ -166,6 +167,7 @@ public: #endif bool init( const tnlParameterContainer& parameters ); RealType epsilon; protected: Loading @@ -176,7 +178,7 @@ protected: RealType hx, ihx; RealType hy, ihy; RealType epsilon; }; Loading Loading @@ -243,6 +245,7 @@ public: #endif bool init( const tnlParameterContainer& parameters ); RealType epsilon; protected: Loading @@ -254,9 +257,6 @@ protected: RealType hy, ihy; RealType hz, ihz; RealType epsilon; }; Loading Loading
examples/hamilton-jacobi-parallel/tnlParallelEikonalSolver3D_impl.h +4 −1 Original line number Diff line number Diff line Loading @@ -1017,10 +1017,12 @@ void tnlParallelEikonalSolver<3,SchemeHost, SchemeDevice, Device, double, int>:: if(l == 0) { if(sharedTau[0] > 1.0 * this->subMesh.template getSpaceStepsProducts< 1, 0, 0 >()) sharedTau[0] = 1.0 * this->subMesh.template getSpaceStepsProducts< 1, 0, 0 >(); if(sharedTau[0] > 0.5 * this->subMesh.template getSpaceStepsProducts< 1, 0, 0 >()) sharedTau[0] = 0.5 * this->subMesh.template getSpaceStepsProducts< 1, 0, 0 >(); } else if(l == blockDim.x*blockDim.y*blockDim.z - 1) { if( time + sharedTau[l] > finalTime ) sharedTau[l] = finalTime - time; } if(l < 256) sharedTau[l] = Min(sharedTau[l],sharedTau[l+256]); Loading @@ -1030,6 +1032,7 @@ void tnlParallelEikonalSolver<3,SchemeHost, SchemeDevice, Device, double, int>:: if(l < 64) sharedTau[l] = Min(sharedTau[l],sharedTau[l+64]); __syncthreads(); if(l < 32) sharedTau[l] = Min(sharedTau[l],sharedTau[l+32]); __syncthreads(); if(l < 16) sharedTau[l] = Min(sharedTau[l],sharedTau[l+16]); if(l < 8) sharedTau[l] = Min(sharedTau[l],sharedTau[l+8]); if(l < 4) sharedTau[l] = Min(sharedTau[l],sharedTau[l+4]); Loading
src/operators/godunov-eikonal/parallelGodunovEikonal.h +5 −5 Original line number Diff line number Diff line Loading @@ -88,6 +88,7 @@ public: #endif bool init( const tnlParameterContainer& parameters ); RealType epsilon; protected: Loading @@ -97,7 +98,7 @@ protected: RealType h; RealType epsilon; }; Loading Loading @@ -166,6 +167,7 @@ public: #endif bool init( const tnlParameterContainer& parameters ); RealType epsilon; protected: Loading @@ -176,7 +178,7 @@ protected: RealType hx, ihx; RealType hy, ihy; RealType epsilon; }; Loading Loading @@ -243,6 +245,7 @@ public: #endif bool init( const tnlParameterContainer& parameters ); RealType epsilon; protected: Loading @@ -254,9 +257,6 @@ protected: RealType hy, ihy; RealType hz, ihz; RealType epsilon; }; Loading