Skip to content

Commit

Permalink
Move variable _init_sims_just_in_time outside of the adaptivity condi…
Browse files Browse the repository at this point in the history
…tion in the constructor
  • Loading branch information
IshaanDesai committed Jan 20, 2025
1 parent 9ba2ef7 commit 7d48be0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions micro_manager/micro_manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
7 #!/usr/bin/env python3
"""
Micro Manager is a tool to initialize and adaptively control micro simulations and couple them via preCICE to a macro simulation.
This files the class MicroManager which has the following callable public methods:
Expand Down Expand Up @@ -95,11 +95,11 @@ def __init__(self, config_file: str) -> None:
self._mesh_vertex_ids = None # IDs of macro vertices as set by preCICE
self._micro_n_out = self._config.get_micro_output_n()

self._init_sims_just_in_time = self._config.initialize_sims_just_in_time()

self._is_adaptivity_on = self._config.turn_on_adaptivity()

if self._is_adaptivity_on:
self._init_sims_just_in_time = self._config.initialize_sims_just_in_time()

self._data_for_adaptivity: Dict[str, np.ndarray] = dict()

self._adaptivity_data_names = self._config.get_data_for_adaptivity()
Expand Down

0 comments on commit 7d48be0

Please sign in to comment.