Skip to content

Commit

Permalink
fix minor MOST zref bug
Browse files Browse the repository at this point in the history
  • Loading branch information
baperry2 committed Apr 5, 2024
1 parent 6765874 commit 8d26e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/BoundaryConditions/MOSTAverage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ MOSTAverage::set_k_indices_N()
AMREX_ASSERT_WITH_MESSAGE(m_zref <= m_zhi - 0.5 * m_dz,
"Query point must be below the last z-cell!");

int lk = static_cast<int>(floor((m_zref - m_zlo) / m_dz - 0.5));
int lk = static_cast<int>(floor((m_zref - m_zlo) / m_dz));

m_zref = (lk + 0.5) * m_dz + m_zlo;

Expand Down

0 comments on commit 8d26e2c

Please sign in to comment.