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;