From 2b6e66b951671702177f6d124d899596129ad8d6 Mon Sep 17 00:00:00 2001 From: tcclevenger Date: Wed, 6 Nov 2024 14:42:44 -0700 Subject: [PATCH] For column means, divide column sums by *global* number of columns, not local --- .../iop_forcing/eamxx_iop_forcing_process_interface.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/components/eamxx/src/physics/iop_forcing/eamxx_iop_forcing_process_interface.cpp b/components/eamxx/src/physics/iop_forcing/eamxx_iop_forcing_process_interface.cpp index 8b91bb267e8..9aac3fdf03a 100644 --- a/components/eamxx/src/physics/iop_forcing/eamxx_iop_forcing_process_interface.cpp +++ b/components/eamxx/src/physics/iop_forcing/eamxx_iop_forcing_process_interface.cpp @@ -447,6 +447,7 @@ void IOPForcing::run_impl (const double dt) const auto u_mean_h = Kokkos::create_mirror_view(u_mean); const auto v_mean_h = Kokkos::create_mirror_view(v_mean); + const auto num_global_cols = m_grid->get_num_global_dofs(); for (int k=0; k