Skip to content

Commit 8efb845

Browse files
cyfraysseCyprien Fraysse
authored andcommitted
phi_total is local not global memory
1 parent dc6aa12 commit 8efb845

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/msad.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ function Arianna.make_step!(simulation::Simulation, algorithm::MSADTracker)
213213
phi_current[m] = rotation_vector(dR)
214214
phi_total[m] = state.phi_acc[m] + phi_current[m]
215215
if norm(phi_current[m]) >= algorithm.theta_T
216-
state.phi_acc[m] = state.phi_total[m]
216+
state.phi_acc[m] = phi_total[m]
217217
state.R_ref_thresh[m] = R_all[m]
218218
end
219219
end
@@ -227,7 +227,7 @@ function Arianna.make_step!(simulation::Simulation, algorithm::MSADTracker)
227227
write_phi_frame(algorithm.files_integral[c],t,N_mol,state.phi_integral)
228228

229229
# Threshold
230-
write_phi_frame(algorithm.files_integral[c],t,N_mol,state.phi_total)
230+
write_phi_frame(algorithm.files_integral[c],t,N_mol,phi_total)
231231
end
232232
end
233233
end

0 commit comments

Comments
 (0)