Skip to content

Commit

Permalink
Log time window instead of time step for adaptivity metric
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanDesai committed Dec 4, 2024
1 parent 2709d08 commit 8901338
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions micro_manager/micro_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def __init__(self, config_file: str) -> None:
)

self._adaptivity_logger.log_info_one_rank(
"Time,Avg Active Sims,Avg Inactive Sims,Max Active,Max Inactive"
"Time Window,Avg Active Sims,Avg Inactive Sims,Max Active,Max Inactive"
)

self._number_of_sims_for_adaptivity = 0
Expand Down Expand Up @@ -300,6 +300,7 @@ def solve(self) -> None:

t += dt # increase internal time when time step is done.
n += 1 # increase counter

self._participant.advance(
dt
) # notify preCICE that time step of size dt is complete
Expand Down Expand Up @@ -341,7 +342,7 @@ def solve(self) -> None:
if self._rank == 0:
self._adaptivity_logger.log_info_one_rank(
"{},{},{},{},{}".format(
t,
n,
np.mean(global_active_sims),
np.mean(global_inactive_sims),
np.max(global_active_sims),
Expand Down

0 comments on commit 8901338

Please sign in to comment.