Skip to content

Commit 4751d4c

Browse files
committed
Fix some import issues.
1 parent 3825c6d commit 4751d4c

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

src/StochasticIntegrators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module StochasticIntegrators
1717

1818

1919
import GeometricIntegrators.Integrators
20-
import GeometricIntegrators.Integrators: Integrator, Parameters, equation, equations, parameters, nstages, timestep, tableau
20+
import GeometricIntegrators.Integrators: Integrator, Parameters
2121

2222
import GeometricIntegrators.Integrators: integrate!, integrate_common!, get_internal_variables
2323

src/integrators/abstract_runge_kutta.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ abstract type StochasticIntegratorPRK{dType, tType, D, M, S} <: PSDEIntegrator{d
44

55
AbstractStochasticIntegratorRK{DT,TT,D,M,S} = Union{StochasticIntegratorRK{DT,TT,D,M,S}, StochasticIntegratorPRK{DT,TT,D,M,S}}
66

7-
@inline Integrators.parameters(integrator::AbstractStochasticIntegratorRK) = integrator.params
8-
@inline Integrators.equation(integrator::AbstractStochasticIntegratorRK, i::Symbol) = integrator.params.equs[i]
9-
@inline Integrators.equations(integrator::AbstractStochasticIntegratorRK) = integrator.params.equs
10-
@inline Integrators.timestep(integrator::AbstractStochasticIntegratorRK) = integrator.params.Δt
11-
@inline Integrators.tableau(integrator::AbstractStochasticIntegratorRK) = integrator.params.tab
7+
@inline parameters(integrator::AbstractStochasticIntegratorRK) = integrator.params
8+
@inline equation(integrator::AbstractStochasticIntegratorRK, i::Symbol) = integrator.params.equs[i]
9+
@inline equations(integrator::AbstractStochasticIntegratorRK) = integrator.params.equs
10+
@inline timestep(integrator::AbstractStochasticIntegratorRK) = integrator.params.Δt
11+
@inline tableau(integrator::AbstractStochasticIntegratorRK) = integrator.params.tab
1212

13-
@inline Integrators.nstages(::AbstractStochasticIntegratorRK{DT,TT,D,M,S}) where {DT,TT,D,M,S} = S
13+
@inline nstages(::AbstractStochasticIntegratorRK{DT,TT,D,M,S}) where {DT,TT,D,M,S} = S
1414
@inline noisedims(::AbstractStochasticIntegratorRK{DT,TT,D,M,S}) where {DT,TT,D,M,S} = M
1515
@inline Base.ndims(::AbstractStochasticIntegratorRK{DT,TT,D,M,S}) where {DT,TT,D,M,S} = D
1616
@inline Base.eltype(::AbstractStochasticIntegratorRK{DT}) where {DT} = DT

src/integrators/integrators.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,32 @@
44
#*****************************************************************************#
55

66
"Create integrator for stochastic explicit Runge-Kutta tableau."
7-
function Integrator(equation::SDE, tableau::TableauSERK, Δt; kwargs...)
7+
function Integrators.Integrator(equation::SDE, tableau::TableauSERK, Δt; kwargs...)
88
IntegratorSERK(equation, tableau, Δt; kwargs...)
99
end
1010

1111
"Create integrator for weak explicit Runge-Kutta tableau."
12-
function Integrator(equation::SDE, tableau::TableauWERK, Δt; kwargs...)
12+
function Integrators.Integrator(equation::SDE, tableau::TableauWERK, Δt; kwargs...)
1313
IntegratorWERK(equation, tableau, Δt; kwargs...)
1414
end
1515

1616
"Create integrator for stochastic fully implicit Runge-Kutta tableau."
17-
function Integrator(equation::SDE, tableau::TableauSIRK, Δt; kwargs...)
17+
function Integrators.Integrator(equation::SDE, tableau::TableauSIRK, Δt; kwargs...)
1818
IntegratorSIRK(equation, tableau, Δt; kwargs...)
1919
end
2020

2121
"Create integrator for stochastic fully implicit partitioned Runge-Kutta tableau."
22-
function Integrator(equation::PSDE, tableau::TableauSIPRK, Δt; kwargs...)
22+
function Integrators.Integrator(equation::PSDE, tableau::TableauSIPRK, Δt; kwargs...)
2323
IntegratorSIPRK(equation, tableau, Δt; kwargs...)
2424
end
2525

2626
"Create integrator for stochastic fully implicit split partitioned Runge-Kutta tableau."
27-
function Integrator(equation::SPSDE, tableau::TableauSISPRK, Δt; kwargs...)
27+
function Integrators.Integrator(equation::SPSDE, tableau::TableauSISPRK, Δt; kwargs...)
2828
IntegratorSISPRK(equation, tableau, Δt; kwargs...)
2929
end
3030

3131
"Create integrator for weak fully implicit Runge-Kutta tableau."
32-
function Integrator(equation::SDE, tableau::TableauWIRK, Δt; kwargs...)
32+
function Integrators.Integrator(equation::SDE, tableau::TableauWIRK, Δt; kwargs...)
3333
IntegratorWIRK(equation, tableau, Δt; kwargs...)
3434
end
3535

@@ -38,7 +38,7 @@ end
3838
# Integration functions for stochastic integrators #
3939
#*****************************************************************************#
4040

41-
function integrate!(int::StochasticIntegrator{DT,TT}, sol::Solution{AT,TT}, asol::AtomicSolution{DT,TT}, m::Int, n::Int) where {DT, TT, AT <: AbstractArray{DT}}
41+
function Integrators.integrate!(int::StochasticIntegrator{DT,TT}, sol::Solution{AT,TT}, asol::AtomicSolution{DT,TT}, m::Int, n::Int) where {DT, TT, AT <: AbstractArray{DT}}
4242
# copy the increments of the Brownian Process
4343
get_increments!(sol, asol, n, m)
4444

test/stochastic_integrators_tests.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
using GeometricIntegrators
32
using StochasticIntegrators
43
using GeometricProblems.KuboOscillator
54
using Test

0 commit comments

Comments
 (0)