diff --git a/amr-wind/equation_systems/icns/source_terms/ABLMesoForcingMom.cpp b/amr-wind/equation_systems/icns/source_terms/ABLMesoForcingMom.cpp index c851270f2a..239fcedf7b 100644 --- a/amr-wind/equation_systems/icns/source_terms/ABLMesoForcingMom.cpp +++ b/amr-wind/equation_systems/icns/source_terms/ABLMesoForcingMom.cpp @@ -338,9 +338,8 @@ void ABLMesoForcingMom::operator()( // averaged velocities (non tendency) const amrex::Real* vheights_begin = (m_tendency) ? m_meso_ht.data() : m_vavg_ht.data(); - const amrex::Real* vheights_end = (m_tendency) - ? m_meso_ht.data() + m_meso_ht.size() - : m_vavg_ht.data() + m_vavg_ht.size(); + const amrex::Real* vheights_end = + (m_tendency) ? m_meso_ht.end() : m_vavg_ht.end(); const amrex::Real* u_error_val = m_error_meso_avg_U.data(); const amrex::Real* v_error_val = m_error_meso_avg_V.data(); const int idir = (int)m_axis; diff --git a/amr-wind/equation_systems/temperature/source_terms/ABLMesoForcingTemp.cpp b/amr-wind/equation_systems/temperature/source_terms/ABLMesoForcingTemp.cpp index 2f9543fc54..f9c0930410 100644 --- a/amr-wind/equation_systems/temperature/source_terms/ABLMesoForcingTemp.cpp +++ b/amr-wind/equation_systems/temperature/source_terms/ABLMesoForcingTemp.cpp @@ -302,8 +302,7 @@ void ABLMesoForcingTemp::operator()( const amrex::Real* theights_begin = (m_tendency) ? m_meso_ht.data() : m_theta_ht.data(); const amrex::Real* theights_end = - (m_tendency) ? m_meso_ht.data() + m_meso_ht.size() - : m_theta_ht.data() + m_theta_ht.size(); + (m_tendency) ? m_meso_ht.end() : m_theta_ht.end(); const amrex::Real* theta_error_val = m_error_meso_avg_theta.data(); const int idir = (int)m_axis; diff --git a/amr-wind/turbulence/LES/AMD.cpp b/amr-wind/turbulence/LES/AMD.cpp index 968471ed81..0cef614881 100644 --- a/amr-wind/turbulence/LES/AMD.cpp +++ b/amr-wind/turbulence/LES/AMD.cpp @@ -86,8 +86,7 @@ void AMD::update_turbulent_viscosity( tpa_deriv_d.begin()); const amrex::Real* p_tpa_coord_begin = tpa_coord_d.data(); - const amrex::Real* p_tpa_coord_end = - tpa_coord_d.data() + tpa_coord_d.size(); + const amrex::Real* p_tpa_coord_end = tpa_coord_d.end(); const amrex::Real* p_tpa_deriv = tpa_deriv_d.data(); const int nlevels = repo.num_active_levels(); for (int lev = 0; lev < nlevels; ++lev) {