r404: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 16 Jan 2001 23:19:03 +0000 (23:19 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 16 Jan 2001 23:19:03 +0000 (23:19 +0000)
include/mpiworld.h
tools/mpiworld.cpp

index 5818ed3df3d4c6149bc475a1aa16413fa0495f57..5f2568f6ca43fb5eaf3eeb1de5d75f602b84ca49 100644 (file)
@@ -32,7 +32,7 @@
 class MPIWorld
 {
  public:
-    MPIWorld (int& argc, char**& argv);
+    MPIWorld (int& argc, char* const *& argv);
 
     void setTotalWorkUnits (int totalUnits);
 
index 39d09a15ea37211e612e4a60d45e57d8bb980c89..100d516ab7f785ea0483a297d57a110790d080ba 100644 (file)
@@ -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.h>
 
 
-MPIWorld::MPIWorld (int& argc, char**& argv)
+MPIWorld::MPIWorld (int& argc, char* const *& argv)
 {
-  MPI::Init (argc, argv);
+  MPI::Init (argc, const_cast<char**&>(argv));
   m_comm = MPI::COMM_WORLD.Dup();
   m_nProcessors = m_comm.Get_size();
   m_myRank = m_comm.Get_rank();