Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/simplify-moment-kin…
Browse files Browse the repository at this point in the history
…etic-advection-coefficients' into simplify-moment-kinetic-advection-coefficients
  • Loading branch information
LucasMontoya4 committed Feb 24, 2025
2 parents 65998f0 + ce36126 commit 6f76d56
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions moment_kinetics/src/load_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4122,10 +4122,10 @@ function _get_fake_moments_fields_scratch(all_moments, it; ion_extra::Tuple=(),
function get_var(variable_name_or_array)
if isa(variable_name_or_array, Symbol)
var = all_moments[variable_name_or_array]
return selectdim(var, ndims(var), it)
else
return variable_name_or_array
var = variable_name_or_array
end
return selectdim(var, ndims(var), it)
end
return (; (field_name=>get_var(variable_name_or_array)
for (field_name, variable_name_or_array) kwargs
Expand Down Expand Up @@ -4512,7 +4512,7 @@ function get_variable(run_info, variable_name; normalize_advection_speed_shape=t
for tind 1:nt
moments, fields, fvec =
_get_fake_moments_fields_scratch(all_moments, tind;
ion_extra=(:ddens_dt=>selectdim(variable, ndims(variable), tind),))
ion_extra=(:ddens_dt=>variable,))
# Dummy first argument, because we actually want the 'side effect' of
# filling the time derivative array in `moments`.
continuity_equation!(dummy, fvec, moments, run_info.composition, 0.0,
Expand All @@ -4534,7 +4534,7 @@ function get_variable(run_info, variable_name; normalize_advection_speed_shape=t
for tind 1:nt
moments, fields, fvec =
_get_fake_moments_fields_scratch(all_moments, tind;
ion_extra=(:dnupar_dt=>selectdim(variable, ndims(variable), tind),))
ion_extra=(:dnupar_dt=>variable,))
# Dummy first argument, because we actually want the 'side effect' of
# filling the time derivative array in `moments`.
force_balance!(dummy, fvec.density, fvec, moments, fields,
Expand Down Expand Up @@ -4562,7 +4562,7 @@ function get_variable(run_info, variable_name; normalize_advection_speed_shape=t
for tind 1:nt
moments, fields, fvec =
_get_fake_moments_fields_scratch(all_moments, tind;
ion_extra=(:dppar_dt=>selectdim(variable, ndims(variable), tind),))
ion_extra=(:dppar_dt=>variable,))
# Dummy first argument, because we actually want the 'side effect' of
# filling the time derivative array in `moments`.
energy_equation!(dummy, fvec, moments, run_info.collisions, 0.0,
Expand Down

0 comments on commit 6f76d56

Please sign in to comment.