From 481d1209ed1304b9c8b6a19856b82c2f3eb0e00c Mon Sep 17 00:00:00 2001 From: Tomas Sobotik <sobotto4@fjfi.cvut.cz> Date: Tue, 3 May 2016 11:30:08 +0200 Subject: [PATCH] Tweaks --- examples/narrow-band/tnlNarrowBand2D_CUDA_v4_impl.h | 2 +- examples/narrow-band/tnlNarrowBand_CUDA.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/narrow-band/tnlNarrowBand2D_CUDA_v4_impl.h b/examples/narrow-band/tnlNarrowBand2D_CUDA_v4_impl.h index 2cf88de626..8c0c5da2c5 100644 --- a/examples/narrow-band/tnlNarrowBand2D_CUDA_v4_impl.h +++ b/examples/narrow-band/tnlNarrowBand2D_CUDA_v4_impl.h @@ -274,7 +274,7 @@ void tnlNarrowBand< tnlGrid< 2,MeshReal, Device, MeshIndex >, Real, Index > :: u // 1 - with curve, 2 - to the north of curve, 4 - to the south of curve, // 8 - to the east of curve, 16 - to the west of curve. int subgridID = i/NARROWBAND_SUBGRID_SIZE + (j/NARROWBAND_SUBGRID_SIZE) * statusGridSize; - if(/*cudaStatusVector[subgridID] != 0 &&*/ i<Mesh.getDimensions().x() && j < Mesh.getDimensions().y()) + if(cudaStatusVector[subgridID] != 0 && i<Mesh.getDimensions().x() && j < Mesh.getDimensions().y()) { tnlGridEntity< tnlGrid< 2,double, tnlHost, int >, 2, tnlGridEntityNoStencilStorage > Entity(Mesh); Entity.setCoordinates(CoordinatesType(i,j)); diff --git a/examples/narrow-band/tnlNarrowBand_CUDA.h b/examples/narrow-band/tnlNarrowBand_CUDA.h index 70b01f04b2..a0fa59a1ee 100644 --- a/examples/narrow-band/tnlNarrowBand_CUDA.h +++ b/examples/narrow-band/tnlNarrowBand_CUDA.h @@ -197,7 +197,7 @@ __global__ void runNarrowBandCUDA(tnlNarrowBand< tnlGrid< 2,double, tnlHost, int -#include "tnlNarrowBand2D_CUDA_v5_impl.h" +#include "tnlNarrowBand2D_CUDA_v4_impl.h" // #include "tnlNarrowBand3D_CUDA_impl.h" #endif /* TNLNARROWBAND_H_ */ -- GitLab