Skip to content

Commit

Permalink
Use NaN for E_cons instead of missing (#136)
Browse files Browse the repository at this point in the history
* Update TPM.jl

* Update TPM.jl
  • Loading branch information
MasanoriKanamaru authored Jul 6, 2024
1 parent 62b829e commit 7290429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TPM.jl
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ struct SingleTPMResult
times ::Vector{Float64}
E_in ::Vector{Float64}
E_out ::Vector{Float64}
E_cons ::Vector{Union{Float64, Missing}}
E_cons ::Vector{Float64}
force ::Vector{SVector{3, Float64}}
torque ::Vector{SVector{3, Float64}}

Expand Down Expand Up @@ -280,7 +280,7 @@ function SingleTPMResult(stpm::SingleTPM, ephem, times_to_save::Vector{Float64},

E_in = zeros(n_step)
E_out = zeros(n_step)
E_cons = Vector{Union{Float64, Missing}}(missing, n_step)
E_cons = fill(NaN, n_step)
force = zeros(SVector{3, Float64}, n_step)
torque = zeros(SVector{3, Float64}, n_step)

Expand Down

0 comments on commit 7290429

Please sign in to comment.