From 7d48be0bad1b5d9f9d566846173671fa262dc75e Mon Sep 17 00:00:00 2001 From: Ishaan Desai Date: Mon, 20 Jan 2025 13:13:32 +0100 Subject: [PATCH] Move variable _init_sims_just_in_time outside of the adaptivity condition in the constructor --- micro_manager/micro_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/micro_manager/micro_manager.py b/micro_manager/micro_manager.py index 470fa76..18021a3 100644 --- a/micro_manager/micro_manager.py +++ b/micro_manager/micro_manager.py @@ -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: @@ -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()