diff --git a/src/gpu/VirtualFluids_GPU/Visitor/ActuatorLine.cu b/src/gpu/VirtualFluids_GPU/Visitor/ActuatorLine.cu index e69d91d9c9a6fc8a3b30fc6bc470277fa043f0b0..7996e81d8e324b326daf0f1456ff8f39e207008b 100644 --- a/src/gpu/VirtualFluids_GPU/Visitor/ActuatorLine.cu +++ b/src/gpu/VirtualFluids_GPU/Visitor/ActuatorLine.cu @@ -181,7 +181,7 @@ void ActuatorLine::visit(Parameter* para, CudaMemoryManager* cudaManager, int le cudaManager->cudaCopyBladeCoordsHtoD(this); - unsigned int numberOfThreads = 128; + uint numberOfThreads = 128; vf::gpu::CudaGrid bladeGrid = vf::gpu::CudaGrid(numberOfThreads, this->numberOfNodes); interpolateVelocities<<< bladeGrid.grid, bladeGrid.threads >>>( diff --git a/src/gpu/VirtualFluids_GPU/Visitor/Probe.cu b/src/gpu/VirtualFluids_GPU/Visitor/Probe.cu index b4395b98bf67700b09d8af937d98d611e1f83a64..7cd1ad872defee6b303e25616e597a2946bb381d 100644 --- a/src/gpu/VirtualFluids_GPU/Visitor/Probe.cu +++ b/src/gpu/VirtualFluids_GPU/Visitor/Probe.cu @@ -109,7 +109,7 @@ void Probe::init(Parameter* para, GridProvider* gridProvider, CudaMemoryManager* std::vector<real> pointCoordsY_level; std::vector<real> pointCoordsZ_level; real dx = abs(para->getParH(level)->coordX_SP[1]-para->getParH(level)->coordX_SP[para->getParH(level)->neighborX_SP[1]]); - for(uint j=0; j<para->getParH(level)->size_Mat_SP; j++ ) + for(uint j=1; j<para->getParH(level)->size_Mat_SP; j++ ) { for(uint point=0; point<this->nProbePoints; point++) { @@ -190,7 +190,7 @@ void Probe::visit(Parameter* para, CudaMemoryManager* cudaManager, int level, un { ProbeStruct* probeStruct = this->getProbeStruct(level); - vf::gpu::CudaGrid grid = vf::gpu::CudaGrid(probeStruct->nPoints, 128); + vf::gpu::CudaGrid grid = vf::gpu::CudaGrid(128, probeStruct->nPoints); interpQuantities<<<grid.grid, grid.threads>>>( probeStruct->pointIndicesD, probeStruct->nPoints, probeStruct->distXD, probeStruct->distYD, probeStruct->distZD, @@ -202,8 +202,6 @@ void Probe::visit(Parameter* para, CudaMemoryManager* cudaManager, int level, un cudaManager->cudaCopyProbeQuantityArrayDtoH(this, level); this->write(para, level, t); } - - } void Probe::free(Parameter* para, CudaMemoryManager* cudaManager)