Commit 034fef8b authored by COULAUD Olivier's avatar COULAUD Olivier

Remove warning: ISO C++ forbids variable length array ‘procsIdArray’

parent b55bd5ef
......@@ -201,7 +201,7 @@ public:
/** Change the group size */
void groupReduce(const int from , const int to){
int procsIdArray[to - from + 1];
int * procsIdArray = new int [to - from + 1];
for(int idxProc = from ;idxProc <= to ; ++idxProc){
procsIdArray[idxProc - from] = idxProc;
}
......@@ -216,6 +216,7 @@ public:
MPI_Group_free(&previousGroup);
reset();
delete procsIdArray ;
}
};
......
Markdown is supported
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