Skip to content

Commit

Permalink
Merge pull request #53 from devmotion/new_ddeproblem
Browse files Browse the repository at this point in the history
Fix new DDE problem with changed parameters
  • Loading branch information
ChrisRackauckas authored Jul 1, 2017
2 parents 04bace8 + 6d8bed8 commit 107eaac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parameters_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function problem_new_parameters(prob::ConstantLagDDEProblem,p)
uEltype = eltype(p)
u0 = [uEltype(prob.u0[i]) for i in 1:length(prob.u0)]
tspan = (uEltype(prob.tspan[1]),uEltype(prob.tspan[2]))
DAEProblem(f,prob.h,u0,prob.lags,tspan)
ConstantLagDDEProblem(f,prob.h,u0,prob.lags,tspan)
end
param_values(prob::ConstantLagDDEProblem) = param_values(prob.f)
num_params(prob::ConstantLagDDEProblem) = num_params(prob.f)
Expand Down

0 comments on commit 107eaac

Please sign in to comment.