1
0
Fork 0
mirror of https://gitlab.rlp.net/mobitar/ReCo.jl.git synced 2024-11-12 22:40:44 +00:00
ReCo.jl/src/data.jl

21 lines
493 B
Julia
Raw Normal View History

2021-11-10 14:41:04 +00:00
struct Solution
t::Vector{Float64}
position::Matrix{Vector{Float64}}
φ::Matrix{Float64}
function Solution(N::Int64, n_frames::Int64)
return new(zeros(n_frames), [zeros(2) for i in 1:N, j in 1:n_frames], zeros((N, n_frames)))
end
end
function save_data_jld(sol, args, name_part)
println("Saving data...")
data_path = "exports/$name_part.jld2"
jldsave(data_path; sol, args, name_part)
println("Data saved to $data_path.")
return nothing
end