Skip to content

Commit

Permalink
EAMxx: fix check for io
Browse files Browse the repository at this point in the history
  • Loading branch information
bartgol committed Jul 29, 2024
1 parent 2ed55ac commit 846e504
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/eamxx/src/share/io/scream_output_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,11 @@ void OutputManager::run(const util::TimeStamp& timestamp)
return;
}

EKAT_REQUIRE_MSG (timestamp<=m_output_control.next_write_ts,
// Ensure we did not go past the scheduled write time without hitting it
EKAT_REQUIRE_MSG (
(m_output_control.frequency_units=="nsteps"
? timestamp.get_num_steps()<=m_output_control.next_write_ts.get_num_steps()
: timestamp<=m_output_control.next_write_ts),
"Error! The input timestamp is past the next scheduled write timestamp.\n"
" - current time stamp : " + timestamp.to_string() + "\n"
" - next write time stamp: " + m_output_control.next_write_ts.to_string() + "\n"
Expand Down

0 comments on commit 846e504

Please sign in to comment.