Commit f10cd5f3 authored by Peter Gottschling's avatar Peter Gottschling
Browse files

Arrays with dynamic sizes is a gnu extension and not standard-compliant.

parent 4beefa8c
...@@ -405,7 +405,7 @@ namespace AMDiS { ...@@ -405,7 +405,7 @@ namespace AMDiS {
{ {
FUNCNAME("StdMpi::commDataSize()"); FUNCNAME("StdMpi::commDataSize()");
MPI::Request request[sendData.size() + recvDataSize.size()]; MPI::Request* request= new MPI::Request[sendData.size() + recvDataSize.size()];
vector<int> sendBuffers; vector<int> sendBuffers;
sendBuffers.resize(sendDataSize.size()); sendBuffers.resize(sendDataSize.size());
...@@ -432,6 +432,8 @@ namespace AMDiS { ...@@ -432,6 +432,8 @@ namespace AMDiS {
bool testall = MPI::Request::Testall(requestCounter, request); bool testall = MPI::Request::Testall(requestCounter, request);
TEST_EXIT(testall)("Should not happen!\n"); TEST_EXIT(testall)("Should not happen!\n");
#endif #endif
delete[] request;
} }
......
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