X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=tools%2Fmpiworld.cpp;h=8122cf9e58c67f593f10dfb7f581bccdfd3cf541;hp=87c9a93be0aa48117507ac5cd9b67579a4bb6df0;hb=8a7697ce57b56cdc43698cd1241ad98d49f9b5ac;hpb=1fd4f7cc977b9f1499716de10d15656bd50f4816 diff --git a/tools/mpiworld.cpp b/tools/mpiworld.cpp index 87c9a93..8122cf9 100644 --- a/tools/mpiworld.cpp +++ b/tools/mpiworld.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: mpiworld.cpp,v 1.1 2000/07/13 07:01:35 kevin Exp $ +** $Id$ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -29,9 +29,9 @@ #include -MPIWorld::MPIWorld (int& argc, char**& argv) +MPIWorld::MPIWorld (int& argc, char* const *& argv) { - MPI::Init (argc, argv); + MPI::Init (argc, const_cast(argv)); m_comm = MPI::COMM_WORLD.Dup(); m_nProcessors = m_comm.Get_size(); m_myRank = m_comm.Get_rank();