Ignore:
Timestamp:
Nov 22, 2011, 9:22:10 PM (14 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
facba0
Parents:
66f24d
Message:

Major vmg update.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1136 5161e1c8-67bf-11de-9fd5-51895aff932f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/base/command_list.cpp

    r66f24d rdfed1c  
    33 * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
    44 * @date   Tue Apr  5 20:15:06 2011
    5  * 
     5 *
    66 */
    77
     
    1212#include <cstdio>
    1313
     14#ifdef DEBUG_BARRIER
     15#ifdef HAVE_MPI
     16#include <mpi.h>
     17#endif
     18#endif
     19
    1420#include "base/command.hpp"
     21#include "base/command_factory.hpp"
    1522#include "base/command_list.hpp"
    1623#include "base/defs.hpp"
     
    2835#ifdef DEBUG
    2936    const int num_args = (iter->second.size() > 1 ? iter->second.size() : (iter->second[0] == "" ? 0 : 1));
    30     MG::GetFactory().CheckNumberOfArguments(iter->first, num_args);
     37    MG::GetCommands().CheckNumberOfArguments(iter->first, num_args);
    3138#endif
    3239
    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
    3457
    3558    if (request == StopCycleLater)
Note: See TracChangeset for help on using the changeset viewer.