Skip to content

Commit

Permalink
Upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyuxie committed Dec 8, 2024
1 parent 60d5c32 commit abc6be4
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions src/auxiliary/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@ function _precompile_manual_()
@assert Base.precompile(Tuple{DiscreteCallback{typeof(Trixi.summary_callback),
typeof(Trixi.summary_callback),
typeof(Trixi.initialize_summary_callback),
typeof(SciMLBase.FINALIZE_DEFAULT)}})
typeof(SciMLBase.FINALIZE_DEFAULT),
typeof(nothing)}})
@assert Base.precompile(Tuple{typeof(summary_box), Base.TTY, String,
Vector{Pair{String, Any}}})
# TODO: AMRCallback, ControllerThreeLevel, indicators
Expand Down Expand Up @@ -523,7 +524,8 @@ function _precompile_manual_()
summary_callback_type = DiscreteCallback{typeof(Trixi.summary_callback),
typeof(Trixi.summary_callback),
typeof(Trixi.initialize_summary_callback),
typeof(SciMLBase.FINALIZE_DEFAULT)}
typeof(SciMLBase.FINALIZE_DEFAULT),
typeof(nothing)}
@assert Base.precompile(Tuple{typeof(show), Base.TTY, summary_callback_type})
@assert Base.precompile(Tuple{typeof(show), IOContext{Base.TTY}, MIME"text/plain",
summary_callback_type})
Expand All @@ -533,14 +535,16 @@ function _precompile_manual_()

alive_callback_type = DiscreteCallback{AliveCallback, AliveCallback,
typeof(Trixi.initialize!),
typeof(SciMLBase.FINALIZE_DEFAULT)}
typeof(SciMLBase.FINALIZE_DEFAULT),
typeof(nothing)}
@assert Base.precompile(Tuple{typeof(show), Base.TTY, alive_callback_type})
@assert Base.precompile(Tuple{typeof(show), IOContext{Base.TTY}, MIME"text/plain",
alive_callback_type})

restart_callback_type = DiscreteCallback{SaveRestartCallback, SaveRestartCallback,
typeof(Trixi.initialize!),
typeof(SciMLBase.FINALIZE_DEFAULT)}
typeof(SciMLBase.FINALIZE_DEFAULT),
typeof(nothing)}
@assert Base.precompile(Tuple{typeof(show), Base.TTY, restart_callback_type})
@assert Base.precompile(Tuple{typeof(show), IOContext{Base.TTY}, MIME"text/plain",
restart_callback_type})
Expand All @@ -549,7 +553,8 @@ function _precompile_manual_()
save_solution_callback_type = DiscreteCallback{SaveSolutionCallback{typeof(solution_variables)},
SaveSolutionCallback{typeof(solution_variables)},
typeof(Trixi.initialize!),
typeof(SciMLBase.FINALIZE_DEFAULT)}
typeof(SciMLBase.FINALIZE_DEFAULT),
typeof(nothing)}
@assert Base.precompile(Tuple{typeof(show), Base.TTY,
save_solution_callback_type})
@assert Base.precompile(Tuple{typeof(show), IOContext{Base.TTY},
Expand All @@ -561,23 +566,26 @@ function _precompile_manual_()
stepsize_callback_type = DiscreteCallback{StepsizeCallback{RealT},
StepsizeCallback{RealT},
typeof(Trixi.initialize!),
typeof(SciMLBase.FINALIZE_DEFAULT)}
typeof(SciMLBase.FINALIZE_DEFAULT),
typeof(nothing)}
@assert Base.precompile(Tuple{typeof(show), Base.TTY, stepsize_callback_type})
@assert Base.precompile(Tuple{typeof(show), IOContext{Base.TTY}, MIME"text/plain",
stepsize_callback_type})

glm_speed_callback_type = DiscreteCallback{GlmSpeedCallback{RealT},
GlmSpeedCallback{RealT},
typeof(Trixi.initialize!),
typeof(SciMLBase.FINALIZE_DEFAULT)}
typeof(SciMLBase.FINALIZE_DEFAULT),
typeof(nothing)}
@assert Base.precompile(Tuple{typeof(show), Base.TTY, glm_speed_callback_type})
@assert Base.precompile(Tuple{typeof(show), IOContext{Base.TTY}, MIME"text/plain",
glm_speed_callback_type})

lbm_collision_callback_type = DiscreteCallback{typeof(Trixi.lbm_collision_callback),
typeof(Trixi.lbm_collision_callback),
typeof(Trixi.initialize!),
typeof(SciMLBase.FINALIZE_DEFAULT)}
typeof(SciMLBase.FINALIZE_DEFAULT),
typeof(nothing)}
@assert Base.precompile(Tuple{typeof(show), Base.TTY, lbm_collision_callback_type})
@assert Base.precompile(Tuple{typeof(show), IOContext{Base.TTY}, MIME"text/plain",
lbm_collision_callback_type})
Expand Down

0 comments on commit abc6be4

Please sign in to comment.