Skip to content

Commit

Permalink
Fix: Add template to horiz_contraction calls
Browse files Browse the repository at this point in the history
  • Loading branch information
tcclevenger committed Dec 6, 2024
1 parent 382cbb2 commit 9004f23
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -449,17 +449,17 @@ void IOPForcing::run_impl (const double dt)
view_1d<Real> qv_mean, t_mean;
view_2d<Real> horiz_winds_mean;
if (iop_nudge_tq){
horiz_contraction(m_helper_fields.at("qv_mean"), get_field_out("qv"),
m_helper_fields.at("horiz_mean_weights"), &m_comm);
horiz_contraction<Real>(m_helper_fields.at("qv_mean"), get_field_out("qv"),
m_helper_fields.at("horiz_mean_weights"), &m_comm);
qv_mean = m_helper_fields.at("qv_mean").get_view<Real*>();

horiz_contraction(m_helper_fields.at("t_mean"), get_field_out("T_mid"),
m_helper_fields.at("horiz_mean_weights"), &m_comm);
horiz_contraction<Real>(m_helper_fields.at("t_mean"), get_field_out("T_mid"),
m_helper_fields.at("horiz_mean_weights"), &m_comm);
t_mean = m_helper_fields.at("t_mean").get_view<Real*>();
}
if (iop_nudge_uv){
horiz_contraction(m_helper_fields.at("horiz_winds_mean"), get_field_out("horiz_winds"),
m_helper_fields.at("horiz_mean_weights"), &m_comm);
horiz_contraction<Real>(m_helper_fields.at("horiz_winds_mean"), get_field_out("horiz_winds"),
m_helper_fields.at("horiz_mean_weights"), &m_comm);
horiz_winds_mean = m_helper_fields.at("horiz_winds_mean").get_view<Real**>();
}

Expand Down

0 comments on commit 9004f23

Please sign in to comment.