Status updates for batch beginnings/endings
| 109 | |
| 110 | // Status updates for batch beginnings/endings |
| 111 | void debug::on_batch_begin(model* m) |
| 112 | { |
| 113 | const auto& c = m->get_execution_context(); |
| 114 | if (m_modes.empty() || m_modes.count(c.get_execution_mode()) > 0) { |
| 115 | std::stringstream msg; |
| 116 | msg << rank_string(*m->get_comm()) << ": " |
| 117 | << "starting " << batch_step_string(*m) << std::endl; |
| 118 | std::cerr << msg.str(); |
| 119 | } |
| 120 | } |
| 121 | void debug::on_batch_end(model* m) |
| 122 | { |
| 123 | const auto& c = m->get_execution_context(); |
nothing calls this directly
no test coverage detected