Skip to content

Commit

Permalink
Move exact_output_times to different position in time_info struct
Browse files Browse the repository at this point in the history
This seems to avoid compiler errors on macOS. No idea why this should
help, or what the original problem was!
  • Loading branch information
johnomotani committed Nov 28, 2024
1 parent d4d54e6 commit 7da282a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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 All @@ -66,6 +65,7 @@ struct time_info{Terrorsum <: Real, T_debug_output, T_electron, Trkimp, Timpzero
implicit_coefficient_is_zero::Timpzero
n_rk_stages::mk_int
rk_order::mk_int
exact_output_times::Bool
adaptive::Bool
low_storage::Bool
rtol::mk_float
Expand Down
12 changes: 6 additions & 6 deletions moment_kinetics/src/time_advance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,12 @@ 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,
electron !== nothing && t_input["exact_output_times"], 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 Down

0 comments on commit 7da282a

Please sign in to comment.