Skip to content

Commit

Permalink
fix: fix method overwriting for PIDESolution
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutosh-b-b committed Jan 27, 2024
1 parent 3f1df12 commit 83ec8f9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/HighDimPDE.jl
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,19 @@ struct PIDESolution{X0, Ts, L, Us, NNs, Ls}
us::Us # array of solution evaluated at x0, ts[i]
ufuns::NNs # array of parametric functions
limits::Ls
end
function PIDESolution(x0, ts, losses, usols, ufuns, limits = nothing)
PIDESolution{typeof(x0),
typeof(ts),
typeof(losses),
typeof(usols),
typeof(ufuns),
typeof(limits)}(x0,
ts,
losses,
usols,
ufuns,
limits)
function PIDESolution(x0, ts, losses, usols, ufuns, limits = nothing)
new{typeof(x0),
typeof(ts),
typeof(losses),
typeof(usols),
typeof(ufuns),
typeof(limits)}(x0,
ts,
losses,
usols,
ufuns,
limits)
end
end

Base.summary(prob::PIDESolution) = string(nameof(typeof(prob)))
Expand Down

0 comments on commit 83ec8f9

Please sign in to comment.