Skip to content
Snippets Groups Projects
Commit d0d94056 authored by zwart's avatar zwart
Browse files

BugID: 719

Changed interface of TH_MPI::initMPI. Now the correct commandline arguments are returned.
parent 0572b6db
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ public:
// Resets all members which are source or destination specific.
void reset();
static void initMPI (int argc, const char *argv[]);
static void initMPI (int& argc, char**&argv);
static void finalize();
static void waitForBroadCast();
static void waitForBroadCast (unsigned long& aVar);
......
......@@ -215,7 +215,7 @@ int TH_MPI::getNumberOfNodes()
return size;
}
void TH_MPI::initMPI(int argc, const char *argv[])
void TH_MPI::initMPI(int& argc, char **&argv)
{
LOG_TRACE_RTTI( "TH_MPI init()" );
int initialized = 0;
......@@ -224,7 +224,7 @@ void TH_MPI::initMPI(int argc, const char *argv[])
MPI_Initialized(&initialized);
if (!initialized)
{
MPI_Init (&argc,(char***)&argv);
MPI_Init (&argc,&argv);
}
}
......
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