From ded9e3a16236d1736cfe21f9fa4be1cc821153f0 Mon Sep 17 00:00:00 2001 From: ysyapa Date: Fri, 18 Aug 2023 20:08:26 +0000 Subject: [PATCH] Bug fix in potential --- common.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.jl b/common.jl index 672551f..bb02b7b 100644 --- a/common.jl +++ b/common.jl @@ -90,7 +90,7 @@ function calculate_Vs(s::system{T}, V_twobody::Function, ϕ::T, n_image::Int)::A end end end - Vs[i] *= s.multiplicity[i[1]] + Vs[i] *= s.multiplicity[s.unique_i[i[1]]] end return Vs end