Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Added counter reset to interaction timer
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Sep 20, 2021
1 parent e6c1b5e commit 473a648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/walltime_classes.f90
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ module walltime_classes
integer(I8B) :: max_interactions = huge(1_I8B)
integer(I4B) :: step_counter
integer(I8B) :: count_previous
character(len=NAMELEN) :: current_style
logical :: lflatten_interaction_old
contains
procedure :: reset => walltime_interaction_reset !! Resets the interaction loop timer, and saves the current value of the array flatten parameter
Expand Down Expand Up @@ -84,6 +83,7 @@ module subroutine walltime_interaction_reset(self, param)
class(swiftest_parameters), intent(inout) :: param !! Current run configuration parameters

self%lflatten_interaction_old = param%lflatten_interactions
self%step_counter = 0
call walltime_reset(self, param)

return
Expand Down

0 comments on commit 473a648

Please sign in to comment.