From f69c67c936c18ef51aa36cf041c306c606848579 Mon Sep 17 00:00:00 2001
From: Soeren Peters <peters.soeren@gmx.net>
Date: Fri, 12 Feb 2021 12:00:52 +0100
Subject: [PATCH] Fix potential signed/unsigned mismatch.

---
 src/cpu/VirtualFluidsCore/Parallel/MPICommunicator.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/cpu/VirtualFluidsCore/Parallel/MPICommunicator.h b/src/cpu/VirtualFluidsCore/Parallel/MPICommunicator.h
index 26f814476..3c25cc78f 100644
--- a/src/cpu/VirtualFluidsCore/Parallel/MPICommunicator.h
+++ b/src/cpu/VirtualFluidsCore/Parallel/MPICommunicator.h
@@ -141,13 +141,11 @@ void MPICommunicator::allGather(std::vector<T> &svalues, std::vector<T> &rvalues
 
     if (rvalues.size() == 0) {
         rvalues.resize(1);
-        rvalues[0] = -999; // FIXME warning C4245: As svalues and rvalues are of type vector<T> there could be a
-                           // potenial signed/unsigned mismatch storring a negative number
+        rvalues[0] = 999;
     }
     if (scount == 0) {
         svalues.resize(1);
-        svalues[0] = -999; // FIXME warning C4245: As svalues and rvalues are of type vector<T> there could be a
-                           // potenial signed/unsigned mismatch storring a negative number
+        svalues[0] = 999;
     }
 
     MPI_Allgatherv(&svalues[0], scount, mpiDataType, &rvalues[0], &rcounts[0], &displs[0], mpiDataType, comm);
-- 
GitLab