From dc04f8bb4800e939d3ff8c4bb449889c4803b793 Mon Sep 17 00:00:00 2001 From: Chris Rackauckas Date: Tue, 14 Dec 2021 05:59:33 -0500 Subject: [PATCH] add DiffEqScalar support for LinearProblem construction --- Project.toml | 2 +- src/problems/basic_problems.jl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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