From: Kevin M. Rosenberg Date: Tue, 16 Jan 2001 23:19:03 +0000 (+0000) Subject: r404: *** empty log message *** X-Git-Tag: debian-4.5.3-3~613 X-Git-Url: http://git.kpe.io/?a=commitdiff_plain;h=4d4c9ac74d67bfa694404db2ced52363a93e8d93;p=ctsim.git r404: *** empty log message *** --- diff --git a/include/mpiworld.h b/include/mpiworld.h index 5818ed3..5f2568f 100644 --- a/include/mpiworld.h +++ b/include/mpiworld.h @@ -32,7 +32,7 @@ class MPIWorld { public: - MPIWorld (int& argc, char**& argv); + MPIWorld (int& argc, char* const *& argv); void setTotalWorkUnits (int totalUnits); diff --git a/tools/mpiworld.cpp b/tools/mpiworld.cpp index 39d09a1..100d516 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.2 2000/07/13 07:17:25 kevin Exp $ +** $Id: mpiworld.cpp,v 1.3 2001/01/16 23:19:03 kevin Exp $ ** ** 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();