Skip to content

Commit

Permalink
Put config parameter micro_time_window_size in coupling_params group
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanDesai committed Jun 10, 2024
1 parent d3dcaa6 commit 4f62fff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions micro_manager/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, logger, config_filename):
self._macro_mesh_name = None
self._read_data_names = dict()
self._write_data_names = dict()
self._micro_time_window = None
self._micro_time_window_size = None

self._macro_domain_bounds = None
self._ranks_per_axis = None
Expand Down Expand Up @@ -115,6 +115,8 @@ def read_json(self, config_filename):
"No read data names provided. Micro manager will only write data to preCICE."
)

self._micro_time_window_size = data["coupling_params"]["micro_time_window_size"]

self._macro_domain_bounds = data["simulation_params"]["macro_domain_bounds"]

try:
Expand All @@ -124,8 +126,6 @@ def read_json(self, config_filename):
"Domain decomposition is not specified, so the Micro Manager will expect to be run in serial."
)

self._micro_time_window = data["simulation_params"]["micro_time_window_size"]

try:
if data["simulation_params"]["adaptivity"] == "True":
self._adaptivity = True
Expand Down Expand Up @@ -435,7 +435,7 @@ def is_adaptivity_required_in_every_implicit_iteration(self):
"""
return self._adaptivity_every_implicit_iteration

def get_micro_time_window(self):
def get_micro_time_window_size(self):
"""
Get the size of the micro time window.
Expand All @@ -444,4 +444,4 @@ def get_micro_time_window(self):
micro_time_window : float
Size of the micro time window.
"""
return self._micro_time_window
return self._micro_time_window_size
2 changes: 1 addition & 1 deletion micro_manager/micro_manager_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __init__(self, config_file):
self._logger.info("Provided configuration file: {}".format(config_file))
self._config = Config(self._logger, config_file)

self._micro_dt = self._config.get_micro_time_window()
self._micro_dt = self._config.get_micro_time_window_size()

def initialize(self):
"""
Expand Down

0 comments on commit 4f62fff

Please sign in to comment.