Skip to content

Commit

Permalink
final commit before merge into main
Browse files Browse the repository at this point in the history
  • Loading branch information
timmyfaraday committed Jan 22, 2024
1 parent b3e4393 commit 497c81c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"

[compat]
AdditionalUnits = "0.1.4"
Graphs = "1.8.0"
Graphs = "1.9.0"
Interpolations = "0.14.7"
Measurements = "2.9.0"
Measurements = "2.11.0"
Multigraphs = "0.3.0"
OrdinaryDiffEq = "6.55.0"
QuadGK = "2.8.2"
OrdinaryDiffEq = "6.58.2"
QuadGK = "2.9.4"
SpecialFunctions = "2.3.1"
Unitful = "1.17.0"
Unitful = "1.19.0"
julia = "1"

[extras]
Expand Down
5 changes: 3 additions & 2 deletions src/form/semi_markov_process.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ function _set_p!(std::AbstractSTD, st::Int, init::Real, tol::Real, DST::Vector,
_fill_p!(init, dst, t, h, p)
end

set_prop!(std, st, :h, h)
set_prop!(std, st, :prob, p)
end
function _fill_p!(init::Real, dst::AbstractDistribution, t::StepRangeLen,
Expand Down Expand Up @@ -136,8 +137,8 @@ function solve!(std::AbstractSTD, cls::AbstractSemiMarkovProcess;
t = zero(dt):dt:tsim

# solve the problem
U = get_U(std,t,tol)
A = ustrip(get_A(std,t,tol))
U = get_U(std, t, tol)
A = ustrip(get_A(std, t, tol))
H = U \ A * unit(1/dt)

set_p!(std, t, H, tol)
Expand Down

0 comments on commit 497c81c

Please sign in to comment.