Skip to content

Commit

Permalink
Merge pull request #190 from mabarnes/restarting-typo-fix
Browse files Browse the repository at this point in the history
Fix typo in check for 1V neutrals when restarting
  • Loading branch information
johnomotani authored Mar 13, 2024
2 parents 6effe8e + 7f3e04f commit 0ad287c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moment_kinetics/src/load_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,8 @@ function reload_evolving_fields!(pdf, moments, boundary_distributions, restart_p

neutral_1V = (vzeta.n_global == 1 && vr.n_global == 1)
restart_neutral_1V = (restart_vzeta.n_global == 1 && restart_vr.n_global == 1)
if geometry.bzeta != 0.0 && ((neutral1V && !restart_neutral_1V) ||
(!neutral1V && restart_neutral_1V))
if geometry.bzeta != 0.0 && ((neutral_1V && !restart_neutral_1V) ||
(!neutral_1V && restart_neutral_1V))
# One but not the other of the run being restarted from and this run are
# 1V, but the interpolation below does not allow for vz and vpa being in
# different directions. Therefore interpolation between 1V and 3V cases
Expand Down

0 comments on commit 0ad287c

Please sign in to comment.