Skip to content

Commit 27296bb

Browse files
authored
Merge pull request #729 from JuliaReach/schillic/discretize
Minor tweaks in discretize
2 parents e792eb0 + 6b723ca commit 27296bb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ReachSets/discretize.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ function _discretize_interpolation_inhomog(δ, U0, U, X0, ϕ, Einit, Eψ0, A, si
735735
Ud = VaryingInput(Ud)
736736

737737
else
738-
throw(ArgumentError("input of type $(typeof(U)) is not allwed"))
738+
throw(ArgumentError("input of type $(typeof(U)) is not allowed"))
739739
end
740740
return Ω0, Ud
741741
end
@@ -801,7 +801,7 @@ function discretize_interval_matrix(𝑆::InitialValueProblem, δ::Float64,
801801
linear_maps = Vector{LinearMap{N}}(undef, order > 2 ? 3 : 2)
802802

803803
= A * A
804-
= IntervalMatrix(Diagonal(fill(IntervalMatrices.Interval(δ), size(A, 1))))
804+
= IntervalMatrix(Diagonal(fill(IntervalMatrices.Interval(δ), n)))
805805
IδW =+ 1/2 * δ^2 * A + 1/6 * δ^3 *
806806
linear_maps[1] = LinearMap(IδW, U0)
807807

@@ -883,7 +883,7 @@ function _discretize_interval_matrix_inhomog(U, Ω0_homog, linear_maps,
883883
throw(ArgumentError("varying inputs with interval matrices are not " *
884884
"supported yet"))
885885
else
886-
throw(ArgumentError("input of type $(typeof(U)) is not allwed"))
886+
throw(ArgumentError("input of type $(typeof(U)) is not allowed"))
887887
end
888888
return Ω0, Ud
889889
end

0 commit comments

Comments
 (0)