Changeset dfed1c for src/commands/com_initialize_residual_norm.cpp
- Timestamp:
- Nov 22, 2011, 9:22:10 PM (14 years ago)
- Children:
- facba0
- Parents:
- 66f24d
- File:
-
- 1 edited
-
src/commands/com_initialize_residual_norm.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/commands/com_initialize_residual_norm.cpp
r66f24d rdfed1c 13 13 #endif 14 14 15 #include <cstdio>16 17 15 #include "base/command.hpp" 18 16 #include "base/object.hpp" … … 28 26 Request Run(Command::argument_vector arguments) 29 27 { 28 MPE_EVENT_BEGIN() 29 30 30 vmg_float residual = MG::GetComm()->ComputeResidualNorm(*MG::GetSol(), *MG::GetRhs()); 31 31 new ObjectStorage<vmg_float>(arguments[0], residual); 32 32 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() 35 38 36 39 return Continue; … … 41 44 }; 42 45 43 CREATE_INITIALIZER(VMGCommandInitializeResidualNorm) ;46 CREATE_INITIALIZER(VMGCommandInitializeResidualNorm)
Note:
See TracChangeset
for help on using the changeset viewer.
