Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -405,7 +405,7 @@ namespace AMDiS {
{
FUNCNAME("StdMpi::commDataSize()");
MPI::Request request[sendData.size() + recvDataSize.size()];
MPI::Request* request= new MPI::Request[sendData.size() + recvDataSize.size()];
vector<int> sendBuffers;
sendBuffers.resize(sendDataSize.size());
......@@ -432,6 +432,8 @@ namespace AMDiS {
bool testall = MPI::Request::Testall(requestCounter, request);
TEST_EXIT(testall)("Should not happen!\n");
#endif
delete[] request;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment