Changeset ac6d04 for src/base/command_list.cpp
- Timestamp:
- Apr 10, 2012, 1:55:49 PM (14 years ago)
- Children:
- a40eea
- Parents:
- d24c2f
- File:
-
- 1 edited
-
src/base/command_list.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/base/command_list.cpp
rd24c2f rac6d04 13 13 #ifdef HAVE_MPI 14 14 #include <mpi.h> 15 #ifdef HAVE_MARMOT 16 #include <enhancempicalls.h> 17 #include <sourceinfompicalls.h> 18 #endif 15 19 #endif 16 20 #endif … … 31 35 Request request; 32 36 Request final_request = (commands.size() == 0 ? StopCycleNow : Continue); 37 Comm* comm = MG::GetComm(); 33 38 34 39 for (CommandList::iterator iter=commands.begin(); iter!=commands.end(); ++iter) { … … 43 48 MPI_Barrier(MPI_COMM_WORLD); 44 49 #endif 45 if (MG::GetComm()->GlobalRank() == 0) 46 std::printf("Command \"%s\"...", iter->first.c_str()); 50 comm->PrintString("Command \"%s\" start", iter->first.c_str()); 47 51 #endif 48 52 … … 55 59 MPI_Barrier(MPI_COMM_WORLD); 56 60 #endif 57 if (MG::GetComm()->GlobalRank() == 0) 58 std::printf(" done\n"); 61 comm->PrintString("Command \"%s\" done", iter->first.c_str()); 59 62 #endif 60 63
Note:
See TracChangeset
for help on using the changeset viewer.
