Skip to content

Commit 94e9602

Browse files
committed
create a SystemSimulation type
This type is intended to store all of the information from all of the domains in a simulation
1 parent d48d769 commit 94e9602

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/Simulation.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ end
2525

2626
export Simulation
2727

28+
struct SystemSimulation{Q<:Tuple{Vararg{AbstractSimulation,N} where N},B<:AbstractODESolution}
29+
sol::B
30+
sims::Q
31+
p::Array{Float64,1}
32+
end
33+
34+
function SystemSimulation(sol,domains,p)
35+
sims = Tuple([Simulation(sol,domain) for domain in domains])
36+
return SystemSimulation(sol,sims,p)
37+
end
38+
export SystemSimulation
39+
2840
length(p::T) where {T<:AbstractSimulation} = 1
2941
export length
3042

0 commit comments

Comments
 (0)