fix typo

parent cb0291ae
......@@ -41,8 +41,8 @@ def assert_results(results, expected_results):
assert len(errors) == 0, errors
def compute_on_single_refinemet(cfg, make_pou, pou_id):
logger = getLogger(f'{FILENAME}.compute_on_single_refinemet')
def compute_on_single_refinement(cfg, make_pou, pou_id):
logger = getLogger(f'{FILENAME}.compute_on_single_refinement')
def init_dd():
return DomainDecomposition(cfg['num_macro_elements'],
cfg['num_refinements_per_subdomain'],
......@@ -95,7 +95,7 @@ def run_fixed_H_refined_h(
for num_refs in np.arange(num_h_refs + 1):
cfg = dict(config)
cfg['num_refinements_per_subdomain'] = num_refs
nsd, nD, er, es = compute_on_single_refinemet(cfg, make_pou, pou_id)
nsd, nD, er, es = compute_on_single_refinement(cfg, make_pou, pou_id)
results['num_subdomains'].append(nsd)
results['num_DoFs'].append(nD)
results['error'].append(er)
......@@ -123,7 +123,7 @@ def run_fixed_h_refined_H(
cfg = dict(config)
cfg['num_macro_elements'] = macro_grid
cfg['num_refinements_per_subdomain'] = global_grid_refines
nsd, nD, er, es = compute_on_single_refinemet(cfg, make_pou, pou_id)
nsd, nD, er, es = compute_on_single_refinement(cfg, make_pou, pou_id)
results['num_subdomains'].append(nsd)
results['num_DoFs'].append(nD)
results['error'].append(er)
......@@ -163,12 +163,12 @@ num_H_refs_less={num_H_refs_less}, initial_macro_grid={initial_macro_grid}"""
def test_fixed_H_refined_h_single_subdomain():
kwargs = {'num_h_refs': 3, 'macro_grid': [1, 1]}
kwargs = {'num_h_refs': 3, 'num_macro_elements': [1, 1]}
assert_results(run_fixed_H_refined_h(**kwargs), expected_results_fixed_H_refined_h(**kwargs))
def test_fixed_H_refined_h_truely_inner_subdomain():
kwargs = {'num_h_refs': 3, 'macro_grid': [3, 3]}
kwargs = {'num_h_refs': 3, 'num_macro_elements': [3, 3]}
assert_results(run_fixed_H_refined_h(**kwargs), expected_results_fixed_H_refined_h(**kwargs))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment