Skip to content

Commit

Permalink
bdy plane interp time: match expressions to pass assertion (#1329)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbkuhn authored Nov 6, 2024
1 parent 1f1154a commit bb0e9dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amr-wind/wind_energy/ABLBoundaryPlane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -770,8 +770,8 @@ void ABLBoundaryPlane::read_file(const bool nph_target_time)

// populate planes and interpolate
const amrex::Real time =
m_time.new_time() + (nph_target_time ? 0.5 : 0.0) *
(m_time.current_time() - m_time.new_time());
nph_target_time ? m_time.current_time() + 0.5 * m_time.delta_t()
: m_time.new_time();
AMREX_ALWAYS_ASSERT((m_in_times[0] <= time) && (time < m_in_times.back()));

// return early if current data files can still be interpolated in time
Expand Down

0 comments on commit bb0e9dc

Please sign in to comment.