diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ed8427..ce331b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## latest +- Explicitly check if time window has converged using the API function `is_time_window_complete()` https://github.com/precice/micro-manager/pull/118 - Add `MicroManagerSnapshot` enabling snapshot computation and storage of microdata in HDF5 format https://github.com/precice/micro-manager/pull/101 - Make `sklearn` an optional dependency - Move the config variable `micro_dt` from the coupling parameters section to the simulation parameters section https://github.com/precice/micro-manager/pull/114 diff --git a/micro_manager/micro_manager.py b/micro_manager/micro_manager.py index ca9f12d..9e2a62e 100644 --- a/micro_manager/micro_manager.py +++ b/micro_manager/micro_manager.py @@ -284,7 +284,9 @@ def solve(self) -> None: is_sim_active = np.copy(is_sim_active_cp) sim_is_associated_to = np.copy(sim_is_associated_to_cp) - else: # Time window has converged, now micro output can be generated + if ( + self._participant.is_time_window_complete() + ): # Time window has converged, now micro output can be generated self._logger.info( "Micro simulations {} - {} have converged at t = {}".format( self._micro_sims[0].get_global_id(),