Skip to content

Commit

Permalink
Tidy up setting of advance flags
Browse files Browse the repository at this point in the history
  • Loading branch information
johnomotani authored Mar 13, 2024
1 parent c041efd commit 7ddf1a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions moment_kinetics/src/time_advance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -485,10 +485,10 @@ function setup_advance_flags(moments, composition, t_input, collisions,
# otherwise, check to see if the flags need to be set to true
if !t_input.split_operators
# default for non-split operators is to include both vpa and z advection together
advance_vpa_advection = true && vpa.n > 1 && z.n > 1
advance_vperp_advection = true && vperp.n > 1 && z.n > 1
advance_z_advection = true && z.n > 1
advance_r_advection = true && r.n > 1
advance_vpa_advection = vpa.n > 1 && z.n > 1
advance_vperp_advection = vperp.n > 1 && z.n > 1
advance_z_advection = z.n > 1
advance_r_advection = r.n > 1
if collisions.nuii > 0.0 && vperp.n > 1
explicit_weakform_fp_collisions = true
else
Expand Down

0 comments on commit 7ddf1a2

Please sign in to comment.