mirror of
https://gitlab.rlp.net/mobitar/ReCo.jl.git
synced 2025-09-02 09:02:35 +00:00
Removed minimum_image
This commit is contained in:
parent
acebf489b7
commit
01e989c6bb
6 changed files with 15 additions and 34 deletions
|
@ -22,8 +22,6 @@ ReCo.gen_cell_list_box(::Float64, ::Float64) = nothing
|
|||
ReCo.restrict_coordinate(value::Float64, ::Float64) = value
|
||||
ReCo.restrict_coordinates(v::SVector{2,Float64}, ::Float64) = v
|
||||
ReCo.restrict_coordinates!(::ReCo.Particle, ::Float64) = nothing
|
||||
ReCo.minimum_image_coordinate(value::Float64, ::Float64) = value
|
||||
ReCo.minimum_image(v::SVector{2,Float64}, ::Float64) = v
|
||||
|
||||
const δt = 1e-4
|
||||
const Dₜ = ReCo.DEFAULT_Dₜ
|
||||
|
|
|
@ -111,7 +111,7 @@ function radial_distribution(;
|
|||
c2 = cs[p2_ind, snapshot_ind]
|
||||
|
||||
r⃗₁₂ = c2 - c1
|
||||
r⃗₁₂ = ReCo.minimum_image(r⃗₁₂, sim_consts.half_box_len)
|
||||
r⃗₁₂ = ReCo.restrict_coordinates(r⃗₁₂, sim_consts.half_box_len)
|
||||
|
||||
distance = ReCo.norm2d(r⃗₁₂)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue