From 638bd3c73546685637c0e51cfb598bbb86016467 Mon Sep 17 00:00:00 2001 From: Ikrom Akramov Date: Fri, 5 Jan 2024 10:56:02 +0100 Subject: [PATCH] Bugs fix --- .../dampedharmonic_oscillator_run_points.py | 8 +++++--- .../dampedharmonic_oscillator_run_stab_interval.py | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/pySDC/projects/Second_orderSDC/dampedharmonic_oscillator_run_points.py b/pySDC/projects/Second_orderSDC/dampedharmonic_oscillator_run_points.py index beb1702992..a7d255dc32 100644 --- a/pySDC/projects/Second_orderSDC/dampedharmonic_oscillator_run_points.py +++ b/pySDC/projects/Second_orderSDC/dampedharmonic_oscillator_run_points.py @@ -4,10 +4,12 @@ from tabulate import tabulate -def check_stab_points(points, num_nodes_list, max_iter_list, store=False, filename='stab_results.txt'): +def check_stab_points( + points, num_nodes_list, max_iter_list, store=False, filename='./data/stab_results.txt' +): # pragma: no cover # Initialize simulation parameters based on the damped harmonic oscillator description = dampedharmonic_oscillator_params() - quad_type_list = ['GAUSS', 'LOBATTO'] + quad_type_list = ['GAUSS', 'LOBATTO', 'RADAU-LEFT', 'RADAU-RIGHT'] # Initialize data as a list of rows data = [] @@ -50,7 +52,7 @@ def check_stab_points(points, num_nodes_list, max_iter_list, store=False, filena print(table_str) -if __name__ == '__main__': +if __name__ == '__main__': # pragma: no cover # Define lists for the number of nodes and maximum iterations M_list = np.arange(3, 6, 1) K_list = np.arange(2, 10, 1) diff --git a/pySDC/projects/Second_orderSDC/dampedharmonic_oscillator_run_stab_interval.py b/pySDC/projects/Second_orderSDC/dampedharmonic_oscillator_run_stab_interval.py index a7d10bb82b..f1f467a6eb 100644 --- a/pySDC/projects/Second_orderSDC/dampedharmonic_oscillator_run_stab_interval.py +++ b/pySDC/projects/Second_orderSDC/dampedharmonic_oscillator_run_stab_interval.py @@ -4,7 +4,9 @@ from tabulate import tabulate -def stab_interval(num_nodes_list, max_iter_list, save_file=False, filename='stab_results.txt'): +def stab_interval( + num_nodes_list, max_iter_list, save_file=False, filename='./data/stab_interval.txt' +): # pragma: no cover # Initialize simulation parameters based on the damped harmonic oscillator description = dampedharmonic_oscillator_params() @@ -49,7 +51,7 @@ def stab_interval(num_nodes_list, max_iter_list, save_file=False, filename='stab print(table_str) -if __name__ == '__main__': +if __name__ == '__main__': # pragma: no cover # Define lists for the number of nodes and maximum iterations M_list = np.arange(2, 7, 1) K_list = np.arange(1, 11, 1)