Skip to content

Commit

Permalink
Merge e7a049d into 0c23d5b
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion committed Jan 21, 2019
2 parents 0c23d5b + e7a049d commit 246408d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Parameters 0.10.0
ForwardDiff 0.7.0
GenericSVD 0.0.2
NLsolve 0.14.1
RecursiveArrayTools 0.13.0
RecursiveArrayTools 0.18.6
DiffEqDiffTools 0.4.0
Reexport
MuladdMacro 0.2.1
Expand Down
8 changes: 2 additions & 6 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,10 @@ function DiffEqBase.__init(

# Get the control variables

if typeof(prob.u0) <: Array
u = recursivecopy(prob.u0)
elseif typeof(prob.u0) <: Number
u = prob.u0
elseif typeof(prob.u0) <: Tuple
if typeof(prob.u0) <: Tuple
u = ArrayPartition(prob.u0,Val{true})
else
u = deepcopy(prob.u0)
u = recursivecopy(prob.u0)
end

uType = typeof(u)
Expand Down

0 comments on commit 246408d

Please sign in to comment.