Skip to content

Commit

Permalink
Explicitly check if the time window has completed (#118)
Browse files Browse the repository at this point in the history
* Explicitly check if the time window has completed

* Add CHANGELOG entry
  • Loading branch information
IshaanDesai authored Jul 30, 2024
1 parent 391969d commit 32fd930
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion micro_manager/micro_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 32fd930

Please sign in to comment.