Skip to content

Commit 1ac1d41

Browse files
committed
try to fix precompiling of summary callback
1 parent 4cd807f commit 1ac1d41

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/auxiliary/precompile.jl

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,11 @@ function _precompile_manual_()
384384
# end
385385
# end
386386
@assert Base.precompile(Tuple{typeof(SummaryCallback)})
387-
# @assert Base.precompile(Tuple{DiscreteCallback{typeof(Trixi.summary_callback),
388-
# typeof(Trixi.summary_callback),
389-
# typeof(Trixi.initialize_summary_callback),
390-
# typeof(SciMLBase.FINALIZE_DEFAULT)}})
387+
@assert Base.precompile(Tuple{DiscreteCallback{typeof(Trixi.summary_callback),
388+
typeof(Trixi.summary_callback),
389+
typeof(Trixi.initialize_summary_callback),
390+
Tuple{Bool, Bool},
391+
typeof(SciMLBase.FINALIZE_DEFAULT)}})
391392
@assert Base.precompile(Tuple{typeof(summary_box), Base.TTY, String,
392393
Vector{Pair{String, Any}}})
393394
# TODO: AMRCallback, ControllerThreeLevel, indicators
@@ -524,11 +525,12 @@ function _precompile_manual_()
524525
typeof(Trixi.summary_callback),
525526
typeof(Trixi.initialize_summary_callback),
526527
typeof(SciMLBase.FINALIZE_DEFAULT),
528+
Tuple{Bool, Bool},
527529
typeof(nothing)}
528530
@assert Base.precompile(Tuple{typeof(show), Base.TTY, summary_callback_type})
529-
# @assert Base.precompile(Tuple{typeof(show), IOContext{Base.TTY}, MIME"text/plain",
530-
# summary_callback_type})
531-
# @assert Base.precompile(Tuple{summary_callback_type, Base.TTY})
531+
@assert Base.precompile(Tuple{typeof(show), IOContext{Base.TTY}, MIME"text/plain",
532+
summary_callback_type})
533+
@assert Base.precompile(Tuple{summary_callback_type, Base.TTY})
532534

533535
# TODO: SteadyStateCallback, AnalysisCallback
534536

0 commit comments

Comments
 (0)