From 10903f909a985ae7bcd71666913285b547e017c7 Mon Sep 17 00:00:00 2001 From: Knut-Frode Dagestad Date: Wed, 13 Mar 2024 12:49:41 +0100 Subject: [PATCH] Removing inline comments related to previous commit, as line numbers will change in the future --- opendrift/models/basemodel/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opendrift/models/basemodel/__init__.py b/opendrift/models/basemodel/__init__.py index 37c575e86..0fdd590ab 100644 --- a/opendrift/models/basemodel/__init__.py +++ b/opendrift/models/basemodel/__init__.py @@ -1974,9 +1974,9 @@ def run(self, logger.info( 'No active but %s scheduled elements, skipping timestep %s (%s)' % (self.num_elements_scheduled(), - self.steps_calculation + 1 , self.time)) # LH correction : +1 to be consistent with the line 2048 + self.steps_calculation + 1 , self.time)) self.state_to_buffer() # Append status to history array - self.steps_calculation += 1 # LH correction : Move from line 2020 to 2030 to propagate the step calculation after the state_to_buffer and to be consistent with the line 2106 + self.steps_calculation += 1 if self.time is not None: self.time = self.time + self.time_step continue