From 9689125e55c1428e3ca183c96250367dae61c1f2 Mon Sep 17 00:00:00 2001 From: "Aaron M. Lattanzi" <103702284+AMLattanzi@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:42:56 -0800 Subject: [PATCH] MOST ML Fix (#2045) * Access tm_arr with level instead of hard coded 0. * Get Post call too. --- Source/TimeIntegration/ERF_SlowRhsPost.cpp | 2 +- Source/TimeIntegration/ERF_SlowRhsPre.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/TimeIntegration/ERF_SlowRhsPost.cpp b/Source/TimeIntegration/ERF_SlowRhsPost.cpp index aaee5f3fe..2a32c4d65 100644 --- a/Source/TimeIntegration/ERF_SlowRhsPost.cpp +++ b/Source/TimeIntegration/ERF_SlowRhsPost.cpp @@ -108,7 +108,7 @@ void erf_slow_rhs_post (int level, int finest_level, TurbChoice tc = solverChoice.turbChoice[level]; const MultiFab* t_mean_mf = nullptr; - if (most) t_mean_mf = most->get_mac_avg(0,2); + if (most) t_mean_mf = most->get_mac_avg(level,2); const bool l_use_terrain = (solverChoice.mesh_type != MeshType::ConstantDz); const bool l_moving_terrain = (solverChoice.terrain_type == TerrainType::Moving); diff --git a/Source/TimeIntegration/ERF_SlowRhsPre.cpp b/Source/TimeIntegration/ERF_SlowRhsPre.cpp index 0bf95d980..2168315c8 100644 --- a/Source/TimeIntegration/ERF_SlowRhsPre.cpp +++ b/Source/TimeIntegration/ERF_SlowRhsPre.cpp @@ -128,7 +128,7 @@ void erf_slow_rhs_pre (int level, int finest_level, TurbChoice tc = solverChoice.turbChoice[level]; const MultiFab* t_mean_mf = nullptr; - if (most) t_mean_mf = most->get_mac_avg(0,2); + if (most) t_mean_mf = most->get_mac_avg(level,2); int start_comp = 0; int num_comp = 2;