Skip to content

Commit e3e9e82

Browse files
committed
add lb inactive tracking
# Conflicts: # CHANGELOG.md
1 parent 68949ae commit e3e9e82

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## latest
44

5+
- Improved load balancing of inactive simulations by tracking a small amount of time [#272](https://github.com/precice/micro-manager/pull/272)
56
- Added the exported field `model_resolution` when using model adaptivity [#271](https://github.com/precice/micro-manager/pull/271)
67
- Fixed model adaptivity active simulation mask generation for 0 local simulations [#270](https://github.com/precice/micro-manager/pull/270)
78
- Allow `initialize()` to return data that is not used by the adaptivity [#261](https://github.com/precice/micro-manager/pull/261)

micro_manager/micro_manager.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,11 +1112,17 @@ def _solve_micro_simulations_with_adaptivity(
11121112

11131113
# Resolve micro sim output data for inactive simulations
11141114
for inactive_lid in inactive_sim_lids:
1115+
self.load_balancing.pre_sim_solve(
1116+
self._global_ids_of_local_sims[inactive_lid]
1117+
)
11151118
micro_sims_output[inactive_lid]["Active-State"] = 0
11161119
gid = self._global_ids_of_local_sims[inactive_lid]
11171120
micro_sims_output[inactive_lid][
11181121
"Active-Steps"
11191122
] = self._micro_sims_active_steps[gid]
1123+
self.load_balancing.post_sim_solve(
1124+
self._global_ids_of_local_sims[inactive_lid]
1125+
)
11201126

11211127
# Collect micro sim output for adaptivity calculation
11221128
for i in range(self._local_number_of_sims):

0 commit comments

Comments
 (0)