Skip to content

Commit

Permalink
Bug fix (#395)
Browse files Browse the repository at this point in the history
* readme file changes

* fixed bugs for stability plots and some edits in README file

* some edits

* typo in citation
  • Loading branch information
ikrom96git authored Feb 6, 2024
1 parent 0a3a901 commit c511315
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pySDC/projects/Second_orderSDC/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ If you utilize it, either in whole or in part, for a publication, please provide
year={2023},
eprint={2310.08352},
archivePrefix={arXiv},
primaryClass={math.NA}
primaryClass={math.NA}}


Reproducing Figures from the Publication
Expand Down Expand Up @@ -54,4 +54,4 @@ Reproducing Figures from the Publication

Contact
-------
This code is written by `Ikrom Akramov`<https://www.mat.tuhh.de/home/iakramov/?homepage_id=iakramov)>_
This code is written by `Ikrom Akramov <https://www.mat.tuhh.de/home/iakramov/?homepage_id=iakramov)>`_
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_default_harmonic_oscillator_description():
sweeper_params = {'quad_type': 'GAUSS', 'num_nodes': 3, 'do_coll_update': True, 'picard_mats_sweep': True}

# Initialize step parameters
step_params = {'maxiter': 5}
step_params = {'maxiter': 50}

# Fill description dictionary for easy step instantiation
description = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@
Iteration matrix of Picard method: model_stab.run_Kpicard()
"""
# This code checks if the "data" folder exists or not.
exec(open("check_data_folder.py").read())
# Execute the stability analysis for the damped harmonic oscillator
description = get_default_harmonic_oscillator_description()
model_stab = StabilityImplementation(description, kappa_max=30, mu_max=30, Num_iter=(200, 200))
# =============================================================================
# maxiter can be changed here manually. By default, maxiter is 50
description['step_params']['maxiter'] = 50
# =============================================================================

model_stab = StabilityImplementation(description, kappa_max=18, mu_max=18, Num_iter=(200, 200))

model_stab.run_SDC_stability()
model_stab.run_Picard_stability()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# It checks whether data folder exicits or not
# This code checks if the "data" folder exists or not.
exec(open("check_data_folder.py").read())

import matplotlib.pyplot as plt
Expand Down
2 changes: 1 addition & 1 deletion pySDC/projects/Second_orderSDC/penningtrap_run_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Note:
Tend: final time value can be given manually by default Tend=2
"""
# It checks whether data folder exicits or not
# This code checks if the "data" folder exists or not.
exec(open("check_data_folder.py").read())
# Get params for the penning trap problem from the function
controller_params, description = penningtrap_params()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# It checks whether data folder exicits or not
# This code checks if the "data" folder exists or not.
exec(open("check_data_folder.py").read())

from pySDC.projects.Second_orderSDC.penningtrap_Simulation import ComputeError
Expand Down

0 comments on commit c511315

Please sign in to comment.