Skip to content

Commit

Permalink
Bugs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ikrom96git committed Jan 5, 2024
1 parent 5d6d754 commit 638bd3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
from tabulate import tabulate

Check warning on line 4 in pySDC/projects/Second_orderSDC/dampedharmonic_oscillator_run_points.py

View check run for this annotation

Codecov / codecov/patch

pySDC/projects/Second_orderSDC/dampedharmonic_oscillator_run_points.py#L1-L4

Added lines #L1 - L4 were not covered by tests


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 = []
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
from tabulate import tabulate

Check warning on line 4 in pySDC/projects/Second_orderSDC/dampedharmonic_oscillator_run_stab_interval.py

View check run for this annotation

Codecov / codecov/patch

pySDC/projects/Second_orderSDC/dampedharmonic_oscillator_run_stab_interval.py#L1-L4

Added lines #L1 - L4 were not covered by tests


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()

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 638bd3c

Please sign in to comment.