From 4a3d9ed4cc6790d6ca37ef1d971ead34fe49c679 Mon Sep 17 00:00:00 2001
From: Anna Wellmann <a.wellmann@tu-bs.de>
Date: Fri, 3 Jun 2022 06:03:31 +0000
Subject: [PATCH] Remove MPI_Init from IndexRearrangementForStreamsTest

A Communicator is now passed to IndexRearrangementForStreams (Commit #7e1ef5521ea0c9765f966d4ba6df65738df72a94). In the constructor of this Communicator MPI_Init is called. Therefore, an additional call to MPI_Init is not needed anymore.
---
 .../GridReaderGenerator/IndexRearrangementForStreamsTest.cpp     | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gpu/VirtualFluids_GPU/DataStructureInitializer/GridReaderGenerator/IndexRearrangementForStreamsTest.cpp b/src/gpu/VirtualFluids_GPU/DataStructureInitializer/GridReaderGenerator/IndexRearrangementForStreamsTest.cpp
index 265fdd43f..4e238b624 100644
--- a/src/gpu/VirtualFluids_GPU/DataStructureInitializer/GridReaderGenerator/IndexRearrangementForStreamsTest.cpp
+++ b/src/gpu/VirtualFluids_GPU/DataStructureInitializer/GridReaderGenerator/IndexRearrangementForStreamsTest.cpp
@@ -295,7 +295,6 @@ private:
     std::unique_ptr<IndexRearrangementForStreams> createTestSubjectReorderSendIndices()
     {
         logging::Logger::addStream(&std::cout);
-        MPI_Init(NULL, NULL);
 
         SPtr<GridImpDouble> grid =
             GridImpDouble::makeShared(nullptr, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, Distribution(), 1);
-- 
GitLab