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/commands/com_initialize_residual_norm.cpp

    r66f24d rdfed1c  
    1313#endif
    1414
    15 #include <cstdio>
    16 
    1715#include "base/command.hpp"
    1816#include "base/object.hpp"
     
    2826  Request Run(Command::argument_vector arguments)
    2927  {
     28    MPE_EVENT_BEGIN()
     29
    3030    vmg_float residual = MG::GetComm()->ComputeResidualNorm(*MG::GetSol(), *MG::GetRhs());
    3131    new ObjectStorage<vmg_float>(arguments[0], residual);
    3232
    33     if (MG::GetComm()->Rank() == 0)
    34       printf("Multigrid: Initial residual: %e\n", residual);
     33#ifdef DEBUG_OUTPUT
     34    MG::GetComm()->PrintStringOnce("Initial residual: %e", residual);
     35#endif /* DEBUG_OUTPUT */
     36
     37    MPE_EVENT_END()
    3538
    3639    return Continue;
     
    4144};
    4245
    43 CREATE_INITIALIZER(VMGCommandInitializeResidualNorm);
     46CREATE_INITIALIZER(VMGCommandInitializeResidualNorm)
Note: See TracChangeset for help on using the changeset viewer.