From c691b17011f8be70a7597c7d060a24aedab0bebc Mon Sep 17 00:00:00 2001
From: HenrikAsmuth <henrik.asmuth@geo.uu.se>
Date: Mon, 12 Sep 2022 13:54:20 +0200
Subject: [PATCH] fix for msvc compiler warning

---
 src/gpu/GridGenerator/VelocitySetter/VelocitySetter.cu | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gpu/GridGenerator/VelocitySetter/VelocitySetter.cu b/src/gpu/GridGenerator/VelocitySetter/VelocitySetter.cu
index d2369a19c..b499fe386 100644
--- a/src/gpu/GridGenerator/VelocitySetter/VelocitySetter.cu
+++ b/src/gpu/GridGenerator/VelocitySetter/VelocitySetter.cu
@@ -259,9 +259,9 @@ void VTKReader::fillArrays(std::vector<real>& coordsY, std::vector<real>& coords
         real posZ = coordsZ[i];
         bool foundNT = false, foundNB = false, foundST = false, foundSB = false, foundAll = false;
 
-        for(std::size_t level=this->fileCollection->files.size(); level>0; level--) // go backwards to find finest nodes first
+        for(int level=(int)this->fileCollection->files.size(); level>0; level--) // go backwards to find finest nodes first
         {
-            for(std::size_t fileId=0; fileId<this->fileCollection->files[level].size(); fileId++)
+            for(int fileId=0; fileId<(int)this->fileCollection->files[level].size(); fileId++)
             {
                 VTKFile file = this->fileCollection->files[level][fileId][0];
                 if(!file.inBoundingBox(posY, posZ, 0.0f)) continue;
-- 
GitLab