From 0c381969cc8fec417c93595c64ceb743f4d3cf6e Mon Sep 17 00:00:00 2001 From: Ishaan Desai Date: Mon, 16 Dec 2024 18:55:14 +0100 Subject: [PATCH] Add CHANGELOG enty and remove unnecessary comments --- CHANGELOG.md | 1 + micro_manager/micro_manager.py | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c07761f..af8bb05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## latest +- Remove the `adaptivity_data` data structure and handle all adaptivity data internally https://github.com/precice/micro-manager/pull/137 - Improve logging by wrapping Python logger in a class https://github.com/precice/micro-manager/pull/133 - Refactor large parts of solve and adaptivity to group datasets and simplify handling https://github.com/precice/micro-manager/pull/135 - Add information about adaptivity tuning parameters https://github.com/precice/micro-manager/pull/131 diff --git a/micro_manager/micro_manager.py b/micro_manager/micro_manager.py index 2ad09d4..cdb2d3a 100644 --- a/micro_manager/micro_manager.py +++ b/micro_manager/micro_manager.py @@ -238,12 +238,10 @@ def solve(self) -> None: self._write_data_to_precice(micro_sims_output) - t += dt # increase internal time when time step is done. - n += 1 # increase counter + t += dt + n += 1 - self._participant.advance( - dt - ) # notify preCICE that time step of size dt is complete + self._participant.advance(dt) # Revert micro simulations to their last checkpoints if required if self._participant.requires_reading_checkpoint():