Skip to content

Commit

Permalink
more places of data + size vs end
Browse files Browse the repository at this point in the history
  • Loading branch information
moprak-nrel committed Nov 14, 2024
1 parent dd4bcad commit d31dc1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void BodyForce::operator()(
const auto& dx = m_mesh.Geom(lev).CellSizeArray();

const amrex::Real* force_ht = m_ht.data();
const amrex::Real* force_ht_end = m_ht.data() + m_ht.size();
const amrex::Real* force_ht_end = m_ht.end();
const amrex::Real* force_theta = m_prof_theta.data();

if (m_type == "height_varying" || m_type == "height-varying") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void HurricaneTempForcing::operator()(

const int idir = m_axis;
const amrex::Real* heights = m_vel_ht.data();
const amrex::Real* heights_end = m_vel_ht.data() + m_vel_ht.size();
const amrex::Real* heights_end = m_vel_ht.end();
const amrex::Real* vals = m_vel_vals.data();

amrex::ParallelFor(bx, [=] AMREX_GPU_DEVICE(int i, int j, int k) noexcept {
Expand Down

0 comments on commit d31dc1c

Please sign in to comment.