From 0fdf1972df81945bb893fa7eddbee980b42e62cb Mon Sep 17 00:00:00 2001 From: David A Minton Date: Tue, 6 Dec 2022 12:12:50 -0500 Subject: [PATCH] Made sure to reset the encounter_history after a file dump --- python/swiftest/swiftest/simulation_class.py | 1 - src/symba/symba_io.f90 | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/python/swiftest/swiftest/simulation_class.py b/python/swiftest/swiftest/simulation_class.py index ea35bae91..e5e71a943 100644 --- a/python/swiftest/swiftest/simulation_class.py +++ b/python/swiftest/swiftest/simulation_class.py @@ -2774,7 +2774,6 @@ def _preprocess(ds, param): return - def follow(self, codestyle="Swifter"): """ An implementation of the Swift tool_follow algorithm. Under development. Currently only for Swift simulations. diff --git a/src/symba/symba_io.f90 b/src/symba/symba_io.f90 index 5c4069a26..93c4556e5 100644 --- a/src/symba/symba_io.f90 +++ b/src/symba/symba_io.f90 @@ -395,6 +395,7 @@ module subroutine symba_io_stop_encounter(self, param, t) call self%encounter_history%nc%initialize(param) call self%encounter_history%dump(param) call self%encounter_history%nc%close() + call self%encounter_history%reset() return end subroutine symba_io_stop_encounter