Skip to content

Commit cb21d09

Browse files
committed
Move timer start outside of conditional.
1 parent ebbd4a2 commit cb21d09

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/somd2/runner/_runner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,9 @@ def generate_lam_vals(lambda_base, increment=0.001):
631631
# Store the checkpoint time in nanoseconds.
632632
checkpoint_interval = self._config.checkpoint_frequency.to("ns")
633633

634+
# Store the start time.
635+
start = _timer()
636+
634637
# Run the simulation, checkpointing in blocks.
635638
if self._config.checkpoint_frequency.value() > 0.0:
636639

@@ -645,9 +648,6 @@ def generate_lam_vals(lambda_base, increment=0.001):
645648
num_blocks = int(frac)
646649
rem = round(frac - num_blocks, 12)
647650

648-
# Store the star time.
649-
start = _timer()
650-
651651
# Run the dynamics in blocks.
652652
for block in range(int(num_blocks)):
653653
# Add the start block number.

0 commit comments

Comments
 (0)