Skip to content

Commit

Permalink
move exact_output_times to end of struct
Browse files Browse the repository at this point in the history
  • Loading branch information
johnomotani committed Nov 28, 2024
1 parent d4d54e6 commit 227cd4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion moment_kinetics/src/input_structs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ struct time_info{Terrorsum <: Real, T_debug_output, T_electron, Trkimp, Timpzero
limit_caused_by::Vector{mk_int}
nwrite_moments::mk_int
nwrite_dfns::mk_int
exact_output_times::Bool
moments_output_times::Vector{mk_float}
dfns_output_times::Vector{mk_float}
type::String
Expand Down Expand Up @@ -98,6 +97,7 @@ struct time_info{Terrorsum <: Real, T_debug_output, T_electron, Trkimp, Timpzero
stopfile::String
debug_io::T_debug_output # Currently only used by electrons
electron::T_electron
exact_output_times::Bool
end

"""
Expand Down
14 changes: 7 additions & 7 deletions moment_kinetics/src/time_advance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,11 @@ function setup_time_info(t_input, n_variables, code_time, dt_reload,
step_to_moments_output, step_to_dfns_output, write_moments_output,
write_dfns_output, Ref(0), Ref(0), Ref{mk_float}(0.0), Ref(0),
Ref(0), Ref(0), mk_int[], mk_int[], t_input["nwrite"],
t_input["nwrite_dfns"],
electron !== nothing && t_input["exact_output_times"],
moments_output_times, dfns_output_times, t_input["type"], rk_coefs,
rk_coefs_implicit, implicit_coefficient_is_zero, n_rk_stages,
rk_order, adaptive, low_storage, mk_float(t_input["rtol"]),
mk_float(t_input["atol"]), mk_float(t_input["atol_upar"]),
t_input["nwrite_dfns"], moments_output_times, dfns_output_times,
t_input["type"], rk_coefs, rk_coefs_implicit,
implicit_coefficient_is_zero, n_rk_stages, rk_order, adaptive,
low_storage, mk_float(t_input["rtol"]), mk_float(t_input["atol"]),
mk_float(t_input["atol_upar"]),
mk_float(t_input["step_update_prefactor"]),
mk_float(t_input["max_increase_factor"]),
mk_float(t_input["max_increase_factor_near_last_fail"]),
Expand All @@ -508,7 +507,8 @@ function setup_time_info(t_input, n_variables, code_time, dt_reload,
t_input["steady_state_residual"],
mk_float(t_input["converged_residual_value"]),
manufactured_solns_input.use_for_advance, t_input["stopfile_name"],
debug_io, electron_t_params)
debug_io, electron_t_params,
electron !== nothing && t_input["exact_output_times"])
end

"""
Expand Down

0 comments on commit 227cd4b

Please sign in to comment.