diff --git a/Project.toml b/Project.toml index 4c962f075..ba4884cf9 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "SciMLBase" uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462" authors = ["Chris Rackauckas and contributors"] -version = "1.22.0" +version = "1.22.1" [deps] ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9" diff --git a/src/problems/basic_problems.jl b/src/problems/basic_problems.jl index 8974c74bf..36f82b2e3 100644 --- a/src/problems/basic_problems.jl +++ b/src/problems/basic_problems.jl @@ -18,6 +18,8 @@ end function LinearProblem(A,b,args...;kwargs...) if A isa AbstractArray LinearProblem{true}(DiffEqArrayOperator(A),b,args...;kwargs...) + elseif A isa Number + LinearProblem{true}(DiffEqScalar(A),b,args...;kwargs...) else LinearProblem{isinplace(A, 4)}(A,b,args...;kwargs...) end