Skip to content
Snippets Groups Projects
Commit 36f368c7 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Iterative solver monitor does not print elpased time, time and tau if one does...

Iterative solver monitor does not print elpased time, time and tau if one does not set timer and time step respectively.
parent bb332424
No related branches found
No related tags found
1 merge request!116Documentation for linear solvers and preconditioners
...@@ -152,13 +152,19 @@ void IterativeSolverMonitor< Real, Index > :: refresh() ...@@ -152,13 +152,19 @@ void IterativeSolverMonitor< Real, Index > :: refresh()
// verbose == 1, attributes were not updated since the last refresh // verbose == 1, attributes were not updated since the last refresh
return; return;
print_item( " ELA:" ); if( this->timer != nullptr )
print_item( real_to_string( getElapsedTime(), 5 ), 8 ); {
print_item( " T:" ); print_item( " ELA:" );
print_item( real_to_string( (saved) ? saved_time : time, 5 ), 8 ); print_item( real_to_string( getElapsedTime(), 5 ), 8 );
if( (saved) ? saved_timeStep : timeStep > 0 ) { }
print_item( " TAU:" ); if( this->timeStep > 0 )
print_item( real_to_string( (saved) ? saved_timeStep : timeStep, 5 ), 10 ); {
print_item( " T:" );
print_item( real_to_string( (saved) ? saved_time : time, 5 ), 8 );
if( (saved) ? saved_timeStep : timeStep > 0 ) {
print_item( " TAU:" );
print_item( real_to_string( (saved) ? saved_timeStep : timeStep, 5 ), 10 );
}
} }
const std::string displayed_stage = (saved) ? saved_stage : stage; const std::string displayed_stage = (saved) ? saved_stage : stage;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment