Skip to content

Commit

Permalink
MOST ML Fix (#2045)
Browse files Browse the repository at this point in the history
* Access tm_arr with level instead of hard coded 0.

* Get Post call too.
  • Loading branch information
AMLattanzi authored Jan 6, 2025
1 parent 481e7f5 commit 9689125
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/TimeIntegration/ERF_SlowRhsPost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion Source/TimeIntegration/ERF_SlowRhsPre.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9689125

Please sign in to comment.