Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ julia = "1.10"

[extras]
AllocCheck = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a"
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
ODEProblemLibrary = "fdc4e326-1af4-4b90-96e7-779fcce2daa5"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["AllocCheck", "JET", "ODEProblemLibrary", "Test"]
test = ["AllocCheck", "ExplicitImports", "JET", "ODEProblemLibrary", "Test"]
17 changes: 13 additions & 4 deletions src/GeometricIntegratorsDiffEq.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
module GeometricIntegratorsDiffEq

using Reexport
@reexport using DiffEqBase
using SciMLBase: ReturnCode
using Reexport: Reexport, @reexport
@reexport using DiffEqBase: DiffEqBase
using SciMLBase: SciMLBase, ReturnCode, check_keywords, isinplace, warn_compat

using GeometricIntegrators
using GeometricIntegrators:
GeometricIntegrators,
CrankNicolson, Crouzeix, ExplicitEuler, ExplicitMidpoint,
Gauss, Heun2, Heun3, ImplicitEuler, ImplicitMidpoint,
KraaijevangerSpijker, Kutta3,
LobattoIIIA, LobattoIIIAIIIB, LobattoIIIB, LobattoIIIBIIIA,
LobattoIIIC, LobattoIIID, LobattoIIIE, LobattoIIIF,
Newton, QinZhang, RK4, RK416, RK438, RadauIA, RadauIIA,
Ralston2, Ralston3, Runge2, SRK3, SSPRK3,
SymplecticEulerA, SymplecticEulerB, integrate

const warnkeywords = (
:save_idxs, :d_discontinuities, :unstable_check, :save_everystep,
Expand Down
13 changes: 13 additions & 0 deletions test/explicit_imports_test.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using ExplicitImports
using GeometricIntegratorsDiffEq
using Test

@testset "ExplicitImports" begin
@testset "No implicit imports" begin
@test check_no_implicit_imports(GeometricIntegratorsDiffEq) === nothing
end

@testset "No stale explicit imports" begin
@test check_no_stale_explicit_imports(GeometricIntegratorsDiffEq) === nothing
end
end
8 changes: 7 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using GeometricIntegratorsDiffEq
using Test

using GeometricIntegrators
using DiffEqBase: SecondOrderODEProblem, solve
using SciMLBase: ReturnCode
import ODEProblemLibrary: prob_ode_2Dlinear

@testset "GeometricIntegratorsDiffEq" begin
Expand Down Expand Up @@ -86,6 +87,11 @@ import ODEProblemLibrary: prob_ode_2Dlinear
end
end # testset GeometricIntegratorsDiffEq

# Run explicit imports tests
@testset "Explicit Imports" begin
include("explicit_imports_test.jl")
end

# Run allocation tests if AllocCheck is available
if get(ENV, "GROUP", "All") == "All" || get(ENV, "GROUP", "") == "Nopre"
include("alloc_tests.jl")
Expand Down
Loading