Skip to content
Merged
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
12 changes: 3 additions & 9 deletions ext/DiffEqBaseGTPSAExt.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
module DiffEqBaseGTPSAExt

if isdefined(Base, :get_extension)
using DiffEqBase
import DiffEqBase: value, ODE_DEFAULT_NORM
using GTPSA
else
using ..DiffEqBase
import ..DiffEqBase: value, ODE_DEFAULT_NORM
using ..GTPSA
end
using DiffEqBase
import DiffEqBase: value, ODE_DEFAULT_NORM
using GTPSA

value(x::TPS) = scalar(x)
value(::Type{<:TPS{T}}) where {T} = T
Expand Down
9 changes: 2 additions & 7 deletions ext/DiffEqBaseGeneralizedGeneratedExt.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
module DiffEqBaseGeneralizedGeneratedExt

if isdefined(Base, :get_extension)
using DiffEqBase
using GeneralizedGenerated
else
using ..DiffEqBase
using ..GeneralizedGenerated
end
using DiffEqBase
using GeneralizedGenerated

function SciMLBase.numargs(::GeneralizedGenerated.RuntimeFn{Args}) where {Args}
GeneralizedGenerated.from_type(Args) |> length
Expand Down
9 changes: 2 additions & 7 deletions ext/DiffEqBaseMPIExt.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
module DiffEqBaseMPIExt

if isdefined(Base, :get_extension)
using DiffEqBase
import MPI
else
using ..DiffEqBase
import ..MPI
end
using DiffEqBase
import MPI

if isdefined(MPI, :AbstractMultiRequest)
function DiffEqBase.anyeltypedual(::Type{T},
Expand Down
12 changes: 3 additions & 9 deletions ext/DiffEqBaseMeasurementsExt.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
module DiffEqBaseMeasurementsExt

if isdefined(Base, :get_extension)
using DiffEqBase
import DiffEqBase: value
using Measurements
else
using ..DiffEqBase
import ..DiffEqBase: value
using ..Measurements
end
using DiffEqBase
import DiffEqBase: value
using Measurements

function DiffEqBase.promote_u0(u0::AbstractArray{<:Measurements.Measurement},
p::AbstractArray{<:Measurements.Measurement}, t0)
Expand Down
12 changes: 3 additions & 9 deletions ext/DiffEqBaseMonteCarloMeasurementsExt.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
module DiffEqBaseMonteCarloMeasurementsExt

if isdefined(Base, :get_extension)
using DiffEqBase
import DiffEqBase: value
using MonteCarloMeasurements
else
using ..DiffEqBase
import ..DiffEqBase: value
using ..MonteCarloMeasurements
end
using DiffEqBase
import DiffEqBase: value
using MonteCarloMeasurements

function DiffEqBase.promote_u0(
u0::AbstractArray{
Expand Down
12 changes: 3 additions & 9 deletions ext/DiffEqBaseTrackerExt.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
module DiffEqBaseTrackerExt

if isdefined(Base, :get_extension)
using DiffEqBase
import DiffEqBase: value
import Tracker
else
using ..DiffEqBase
import ..DiffEqBase: value
import ..Tracker
end
using DiffEqBase
import DiffEqBase: value
import Tracker

DiffEqBase.value(x::Type{Tracker.TrackedReal{T}}) where {T} = T
DiffEqBase.value(x::Type{Tracker.TrackedArray{T, N, A}}) where {T, N, A} = Array{T, N}
Expand Down
13 changes: 4 additions & 9 deletions ext/DiffEqBaseUnitfulExt.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
module DiffEqBaseUnitfulExt

if isdefined(Base, :get_extension)
using DiffEqBase
import DiffEqBase: value
using Unitful
else
using ..DiffEqBase
import ..DiffEqBase: value
using ..Unitful
end
using DiffEqBase
import DiffEqBase: value
using Unitful

# Support adaptive errors should be errorless for exponentiation
value(x::Type{Unitful.AbstractQuantity{T, D, U}}) where {T, D, U} = T
value(x::Unitful.AbstractQuantity) = x.val
Expand Down
Loading