Changeset dfed1c for src/base/command_list.cpp
- Timestamp:
- Nov 22, 2011, 9:22:10 PM (14 years ago)
- Children:
- facba0
- Parents:
- 66f24d
- File:
-
- 1 edited
-
src/base/command_list.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/base/command_list.cpp
r66f24d rdfed1c 3 3 * @author Julian Iseringhausen <isering@ins.uni-bonn.de> 4 4 * @date Tue Apr 5 20:15:06 2011 5 * 5 * 6 6 */ 7 7 … … 12 12 #include <cstdio> 13 13 14 #ifdef DEBUG_BARRIER 15 #ifdef HAVE_MPI 16 #include <mpi.h> 17 #endif 18 #endif 19 14 20 #include "base/command.hpp" 21 #include "base/command_factory.hpp" 15 22 #include "base/command_list.hpp" 16 23 #include "base/defs.hpp" … … 28 35 #ifdef DEBUG 29 36 const int num_args = (iter->second.size() > 1 ? iter->second.size() : (iter->second[0] == "" ? 0 : 1)); 30 MG::Get Factory().CheckNumberOfArguments(iter->first, num_args);37 MG::GetCommands().CheckNumberOfArguments(iter->first, num_args); 31 38 #endif 32 39 33 request = MG::GetFactory().GetCommand((*iter).first)->Run((*iter).second); 40 #ifdef DEBUG_BARRIER 41 #ifdef HAVE_MPI 42 MPI_Barrier(MPI_COMM_WORLD); 43 #endif 44 if (MG::GetComm()->GlobalRank() == 0) 45 std::printf("Command \"%s\"...", iter->first.c_str()); 46 #endif 47 48 request = MG::GetCommands().Get((*iter).first)->Run((*iter).second); 49 50 #ifdef DEBUG_BARRIER 51 #ifdef HAVE_MPI 52 MPI_Barrier(MPI_COMM_WORLD); 53 #endif 54 if (MG::GetComm()->GlobalRank() == 0) 55 std::printf(" done\n"); 56 #endif 34 57 35 58 if (request == StopCycleLater)
Note:
See TracChangeset
for help on using the changeset viewer.
