Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

- Improved load balancing of inactive simulations by tracking a small amount of time [#272](https://github.com/precice/micro-manager/pull/272)
- Added the exported field `model_resolution` when using model adaptivity [#271](https://github.com/precice/micro-manager/pull/271)
- Fixed model adaptivity active simulation mask generation for 0 local simulations [#270](https://github.com/precice/micro-manager/pull/270)
- Allow `initialize()` to return data that is not used by the adaptivity [#261](https://github.com/precice/micro-manager/pull/261)
Expand Down
6 changes: 6 additions & 0 deletions micro_manager/micro_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,11 +1112,17 @@ def _solve_micro_simulations_with_adaptivity(

# Resolve micro sim output data for inactive simulations
for inactive_lid in inactive_sim_lids:
self.load_balancing.pre_sim_solve(
self._global_ids_of_local_sims[inactive_lid]
)
micro_sims_output[inactive_lid]["Active-State"] = 0
gid = self._global_ids_of_local_sims[inactive_lid]
micro_sims_output[inactive_lid][
"Active-Steps"
] = self._micro_sims_active_steps[gid]
self.load_balancing.post_sim_solve(
self._global_ids_of_local_sims[inactive_lid]
)

# Collect micro sim output for adaptivity calculation
for i in range(self._local_number_of_sims):
Expand Down
Loading