Skip to content

Commit

Permalink
Merge pull request seahorce-scidac#230 from seahorce-scidac/smflux_nc…
Browse files Browse the repository at this point in the history
…plotfile

initialize sustr and svstr when making new level
  • Loading branch information
hklion authored Jul 18, 2024
2 parents 21cce40 + e118a5e commit 438e917
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Initialization/REMORA_make_new_level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ REMORA::MakeNewLevelFromCoarse (int lev, Real time, const BoxArray& ba,
set_hmixcoef(lev);
set_coriolis(lev);
set_zeta_to_Ztavg(lev);
init_custom_smflux(geom[lev], time, *vec_sustr[lev], *vec_svstr[lev], solverChoice);

// ********************************************************************************************
// If we are making a new level then the FillPatcher for this level hasn't been allocated yet
Expand Down Expand Up @@ -205,6 +206,7 @@ REMORA::RemakeLevel (int lev, Real time, const BoxArray& ba, const DistributionM
set_hmixcoef(lev);
set_coriolis(lev);
set_zeta_to_Ztavg(lev);
init_custom_smflux(geom[lev], time, *vec_sustr[lev], *vec_svstr[lev], solverChoice);

// We need to re-define the FillPatcher if the grids have changed
if (lev > 0 && cf_width >= 0) {
Expand Down

0 comments on commit 438e917

Please sign in to comment.