diff --git a/src/gpu/VirtualFluids_GPU/Visitor/ActuatorLine.cu b/src/gpu/VirtualFluids_GPU/Visitor/ActuatorLine.cu index a3994dc00cee1f8cf028f5ddaaacce515e6414f9..e69d91d9c9a6fc8a3b30fc6bc470277fa043f0b0 100644 --- a/src/gpu/VirtualFluids_GPU/Visitor/ActuatorLine.cu +++ b/src/gpu/VirtualFluids_GPU/Visitor/ActuatorLine.cu @@ -423,7 +423,7 @@ void ActuatorLine::initBoundingSphere(Parameter* para, CudaMemoryManager* cudaMa if(dist < 0.6*this->diameter) nodesInSphere.push_back(j); } - this->numberOfIndices = nodesInSphere.size(); + this->numberOfIndices = uint(nodesInSphere.size()); cudaManager->cudaAllocSphereIndices(this); std::copy(nodesInSphere.begin(), nodesInSphere.end(), this->boundingSphereIndicesH); cudaManager->cudaCopySphereIndicesHtoD(this); diff --git a/src/gpu/VirtualFluids_GPU/Visitor/Probe.cu b/src/gpu/VirtualFluids_GPU/Visitor/Probe.cu index 5d317082b27206b90ec48ed7612a3effbf565567..b4395b98bf67700b09d8af937d98d611e1f83a64 100644 --- a/src/gpu/VirtualFluids_GPU/Visitor/Probe.cu +++ b/src/gpu/VirtualFluids_GPU/Visitor/Probe.cu @@ -137,7 +137,7 @@ void Probe::init(Parameter* para, GridProvider* gridProvider, CudaMemoryManager* } probeParams[level] = new ProbeStruct; - probeParams[level]->nPoints = probeIndices_level.size(); + probeParams[level]->nPoints = uint(probeIndices_level.size()); probeParams[level]->pointCoordsX = pointCoordsX_level.data(); probeParams[level]->pointCoordsY = pointCoordsY_level.data(); probeParams[level]->pointCoordsZ = pointCoordsZ_level.data(); @@ -173,9 +173,9 @@ void Probe::init(Parameter* para, GridProvider* gridProvider, CudaMemoryManager* std::copy(this->postProcessingVariables.begin(), this->postProcessingVariables.end(), probeParams[level]->quantitiesH); cudaManager->cudaCopyProbeQuantitiesHtoD(this, level); - for(int arr=0; arr<probeParams[level]->nArrays; arr++) + for(uint arr=0; arr<probeParams[level]->nArrays; arr++) { - for( int point=0; point<probeParams[level]->nPoints; point++) + for( uint point=0; point<probeParams[level]->nPoints; point++) { probeParams[level]->quantitiesArrayH[arr*probeParams[level]->nPoints+point] = 0.0f; } @@ -225,7 +225,7 @@ void Probe::setProbePointsFromList(std::vector<real> &_pointCoordsX, std::vector this->pointCoordsX = _pointCoordsX; this->pointCoordsY = _pointCoordsY; this->pointCoordsZ = _pointCoordsZ; - this->nProbePoints = _pointCoordsX.size(); + this->nProbePoints = uint(_pointCoordsX.size()); printf("Added list of %u points \n", this->nProbePoints ); }