Skip to content

Commit a14bbc0

Browse files
bartgolmahf708
authored andcommitted
EAMxx: improve driver message at the top of run call
Show current step count, and beg/end of step timestamps
1 parent 6d06d26 commit a14bbc0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

components/eamxx/src/control/atmosphere_driver.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,9 +1620,11 @@ void AtmosphereDriver::run (const int dt) {
16201620
EKAT_REQUIRE_MSG (dt>0, "Error! Input time step must be positive.\n");
16211621

16221622
// Print current timestamp information
1623+
auto end_of_step = m_current_ts + dt;
16231624
m_atm_logger->log(ekat::logger::LogLevel::info,
1624-
"Atmosphere step = " + std::to_string(m_current_ts.get_num_steps()) + "\n" +
1625-
" model start-of-step time = " + m_current_ts.get_date_string() + " " + m_current_ts.get_time_string() + "\n");
1625+
"Atmosphere step = " + std::to_string(end_of_step.get_num_steps()) + "\n" +
1626+
" model beg-of-step timestamp: " + m_current_ts.get_date_string() + " " + m_current_ts.get_time_string() + "\n"
1627+
" model end-of-step timestamp: " + end_of_step.get_date_string() + " " + end_of_step.get_time_string() + "\n");
16261628

16271629
// Reset accum fields to 0
16281630
// Note: at the 1st timestep this is redundant, since we did it at init,

0 commit comments

Comments
 (0)