From 6a5064305897ad7cd2c32d6b79446d29411f4c07 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Thu, 20 Aug 2026 09:25:30 -0400 Subject: [PATCH] Add representative PrecompileTools workload Co-Authored-By: Chris Rackauckas --- Project.toml | 2 ++ src/DiffEqProblemLibrary.jl | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/Project.toml b/Project.toml index 5b4b4407..05f883ec 100644 --- a/Project.toml +++ b/Project.toml @@ -10,6 +10,7 @@ DDEProblemLibrary = "f42792ee-6ffc-4e2a-ae83-8ee2f22de800" JumpProblemLibrary = "faf0f6d7-8cee-47cb-b27c-1eb80cef534e" NonlinearProblemLibrary = "b7050fa9-e91f-4b37-bcee-a89a063da141" ODEProblemLibrary = "fdc4e326-1af4-4b90-96e7-779fcce2daa5" +PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" SDEProblemLibrary = "c72e72a9-a271-4b2b-8966-303ed956772e" [compat] @@ -19,6 +20,7 @@ DDEProblemLibrary = "0.1" JumpProblemLibrary = "2.0" NonlinearProblemLibrary = "0.1" ODEProblemLibrary = "1" +PrecompileTools = "1.2" Pkg = "1.10" SafeTestsets = "0.1" SciMLTesting = "2.4" diff --git a/src/DiffEqProblemLibrary.jl b/src/DiffEqProblemLibrary.jl index 19b694c3..82ded345 100644 --- a/src/DiffEqProblemLibrary.jl +++ b/src/DiffEqProblemLibrary.jl @@ -8,4 +8,18 @@ import JumpProblemLibrary import BVProblemLibrary import NonlinearProblemLibrary +using PrecompileTools: @compile_workload, @setup_workload + +@setup_workload begin + @compile_workload begin + isdefined(@__MODULE__, :ODEProblemLibrary) + isdefined(@__MODULE__, :DAEProblemLibrary) + isdefined(@__MODULE__, :DDEProblemLibrary) + isdefined(@__MODULE__, :SDEProblemLibrary) + isdefined(@__MODULE__, :JumpProblemLibrary) + isdefined(@__MODULE__, :BVProblemLibrary) + isdefined(@__MODULE__, :NonlinearProblemLibrary) + end +end + end # module