X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=tools%2Fmpiworld.cpp;h=6896d6563b0a884e2ab3a96c4c3ccfab9be33e75;hp=8122cf9e58c67f593f10dfb7f581bccdfd3cf541;hb=f13a8c004b8f182b42d9e4df2bcd7c7f030bf1ad;hpb=8a7697ce57b56cdc43698cd1241ad98d49f9b5ac diff --git a/tools/mpiworld.cpp b/tools/mpiworld.cpp index 8122cf9..6896d65 100644 --- a/tools/mpiworld.cpp +++ b/tools/mpiworld.cpp @@ -7,9 +7,7 @@ ** Date Started: June 2000 ** ** This is part of the CTSim program -** Copyright (C) 1983-2000 Kevin Rosenberg -** -** $Id$ +** Copyright (C) 1983-2009 Kevin Rosenberg ** ** 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 @@ -41,7 +39,7 @@ MPIWorld::MPIWorld (int& argc, char* const *& argv) } -void +void MPIWorld::setTotalWorkUnits(int totalWorkUnits) { if (m_nProcessors < 1) @@ -61,7 +59,7 @@ MPIWorld::setTotalWorkUnits(int totalWorkUnits) currWorkUnits += m_vLocalWorkUnits[iProc]; } - + } void @@ -76,7 +74,7 @@ MPIWorld::BcastString (string& str) if (m_myRank == 0) strcpy (buf, str.c_str()); - + m_comm.Bcast (buf, len + 1, MPI::CHAR, 0); if (m_myRank > 0)