[scripts] allow to specify dataset name in Q1 test

parent e9b87146
......@@ -73,11 +73,12 @@ def compute_on_single_refinemet(cfg, make_pou, pou_id):
def run_fixed_H_refined_h(
num_refs=(1, 2, 3, 4, 5, 6, 7, 8),
make_pou=lambda dd: ContinuousLagrangePartitionOfUnity(dd),
pou_id='Q1PoU'):
pou_id='Q1PoU',
DATASET_ID=FILENAME + '.fixed_H_refined_h'):
config = dict(base_config)
config['num_macro_elements'] = [2, 2]
config['num_refs'] = num_refs
new_dataset(FILENAME + '.fixed_H_refined_h', **config)
new_dataset(DATASET_ID, **config)
results = {'num_subdomains': [], 'num_DoFs': [], 'error': [], 'estimate': []}
for num_refs in config['num_refs']:
......@@ -96,13 +97,14 @@ def run_fixed_H_refined_h(
def run_fixed_h_refined_H(
num_H_refs=3, # the fourth already takes 15 minutes and all ram on my notebook
make_pou=lambda dd: ContinuousLagrangePartitionOfUnity(dd),
pou_id='Q1PoU'):
pou_id='Q1PoU',
DATASET_ID=FILENAME + '.fixed_h_refined_H'):
config = dict(base_config)
macro_grid = [4, 4]
num_refs = 7
config['macro_grid'] = macro_grid
config['num_refs'] = num_refs
new_dataset(FILENAME + '.fixed_h_refined_H', **config)
new_dataset(DATASET_ID, **config)
results = {'num_subdomains': [], 'num_DoFs': [], 'error': [], 'estimate': []}
for _ in np.arange(num_H_refs):
......
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