@@ -179,11 +179,11 @@ function obtain_data_for_electrostatic_interaction(system::PotentialNBodySystem)
179179 qs = zeros (typeof (first (bodies). q), n)
180180 ms = zeros (typeof (first (bodies). m), n)
181181 indxs = collect (1 : n)
182- exclude = Dict {Int, Set {Int}} ()
182+ exclude = Dict {Int, Vector {Int}} ()
183183 for i = 1 : n
184184 qs[i] = bodies[i]. q
185185 ms[i] = bodies[i]. m
186- exclude[i] = Set {Int} (i)
186+ exclude[i] = [i]
187187 end
188188 return (qs, ms, indxs, exclude)
189189end
@@ -194,7 +194,7 @@ function obtain_data_for_electrostatic_interaction(system::WaterSPCFw)
194194 qs = zeros (3 * n)
195195 ms = zeros (3 * n)
196196 indxs = collect (1 : 3 * n)
197- exclude = Dict {Int, Set {Int}} ()
197+ exclude = Dict {Int, Vector {Int}} ()
198198 for i = 1 : n
199199 Oind = 3 * (i - 1 ) + 1
200200 qs[Oind] = system. qO
@@ -203,9 +203,9 @@ function obtain_data_for_electrostatic_interaction(system::WaterSPCFw)
203203 ms[Oind] = system. mO
204204 ms[Oind + 1 ] = system. mH
205205 ms[Oind + 2 ] = system. mH
206- exclude[Oind] = Set {Int} (( Oind, Oind+ 1 , Oind+ 2 ,3 * n+ 1 ))
207- exclude[Oind+ 1 ] = Set {Int} (( Oind, Oind+ 1 , Oind+ 2 ,3 * n+ 1 ))
208- exclude[Oind+ 2 ] = Set {Int} (( Oind, Oind+ 1 , Oind+ 2 ,3 * n+ 1 ))
206+ exclude[Oind] = [ Oind, Oind+ 1 , Oind+ 2 ,3 * n+ 1 ]
207+ exclude[Oind+ 1 ] = [ Oind, Oind+ 1 , Oind+ 2 ,3 * n+ 1 ]
208+ exclude[Oind+ 2 ] = [ Oind, Oind+ 1 , Oind+ 2 ,3 * n+ 1 ]
209209 end
210210 return (qs, ms, indxs, exclude)
211211end
0 commit comments