Commit 2686b6e9 authored by Martin Bauer's avatar Martin Bauer
Browse files

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
parent 5ca3086d
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment