From 2686b6e9c70d079582a361cc0f1a09cadb171693 Mon Sep 17 00:00:00 2001
From: Martin Bauer <martin.bauer@fau.de>
Date: Fri, 18 Jan 2019 15:22:59 +0100
Subject: [PATCH] Fixed MPICH2 problem regarding MPI_Type_create_struct

MPICH2 apparently expects a non-const pointer for blocklenghts whereas
other MPIs expect const pointer -> removed const to work with all
---
 src/pe/raytracing/Raytracer.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pe/raytracing/Raytracer.cpp b/src/pe/raytracing/Raytracer.cpp
index d7eef3e65..6c23292f9 100644
--- a/src/pe/raytracing/Raytracer.cpp
+++ b/src/pe/raytracing/Raytracer.cpp
@@ -219,7 +219,7 @@ void Raytracer::setupMPI_() {
    MPI_Op_create((MPI_User_function *)BodyIntersectionInfo_Comparator_MPI_OP, true, &bodyIntersectionInfo_reduction_op);
    
    const int nblocks = 7;
-   const int blocklengths[nblocks] = {1,1,1,1,1,1,1};
+   int blocklengths[nblocks] = {1,1,1,1,1,1,1};
    MPI_Datatype types[nblocks] = {
       MPI_UNSIGNED, // for coordinate
       MPI_UNSIGNED, // for coordinate
-- 
GitLab