Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initialize grid scale arrays (pm and pn) before other initialization routines #330

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
initialize grid scale arrays (pm and pn) before other initialization …
…routines
  • Loading branch information
hklion committed Jan 15, 2025
commit 9a1dc54e2ef42735993c02dd273b5d84dce96493
2 changes: 1 addition & 1 deletion Source/REMORA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ REMORA::init_only (int lev, Real time)
}
#endif

set_pm_pn(lev);
set_bathymetry(lev);
set_zeta(lev);
stretch_transform(lev);
Expand All @@ -662,7 +663,6 @@ REMORA::init_only (int lev, Real time)
FillCoarsePatch(lev, time, xvel_new[lev], xvel_new[lev-1]);
FillCoarsePatch(lev, time, yvel_new[lev], yvel_new[lev-1]);
FillCoarsePatch(lev, time, zvel_new[lev], zvel_new[lev-1]);
set_pm_pn(lev);
}
} else if (solverChoice.init_ana_T || solverChoice.init_l1ad_T) {
if (solverChoice.ic_bc_type == IC_BC_Type::Custom)
Expand Down
Loading