Skip to content

Commit 6a22bc2

Browse files
fix SROCK handling
1 parent 87e1c0c commit 6a22bc2

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/alg_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ alg_interpretation(alg::EulerHeun) = :Stratonovich
122122
alg_interpretation(alg::LambaEulerHeun) = :Stratonovich
123123
alg_interpretation(alg::KomBurSROCK2) = :Stratonovich
124124
alg_interpretation(alg::RKMil{interpretation}) where {interpretation} = interpretation
125-
alg_interpretation(alg::SROCK1{interpretation}) where {interpretation} = interpretation
125+
alg_interpretation(alg::SROCK1{interpretation,E}) where {interpretation,E} = interpretation
126126
alg_interpretation(alg::RKMilCommute{interpretation}) where {interpretation} = interpretation
127127
alg_interpretation(alg::RKMilGeneral) = alg.interpretation
128128
alg_interpretation(alg::ImplicitRKMil{CS,AD,F,FDT,ST,N,T2,Controller,interpretation}) where {CS,AD,F,FDT,ST,N,T2,Controller,interpretation} = interpretation

src/perform_step/SROCK_perform_step.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@
7373
gₘ₋₂ = integrator.g(uᵢ₋₁,p,tᵢ₋₁)
7474
u += gₘ₋₂*W.dW
7575
end
76-
else
77-
error("Alg interpretation invalid. Use either :Ito or :Stratonovich")
7876
end
7977

8078
if i < mdeg
@@ -165,8 +163,6 @@ end
165163
mul!(uᵢ₋₁,gₘ₋₂,W.dW)
166164
@.. u += uᵢ₋₁
167165
end
168-
else
169-
error("Alg interpretation invalid. Use either :Ito or :Stratonovich")
170166
end
171167

172168
if i < mdeg

0 commit comments

Comments
 (0)