Skip to content

Conversation

@brownbaerchen
Copy link
Contributor

This is the rest of the mess that I created over the past couple of weeks.

Changes include:

  • Three different reference solutions for Quench problem: Scipy, SDC with small dt and DIRK
  • Moved the strategies for quick setup of different SDC versions to their own file and added a few
  • Added script for making work-error plots
  • Added script to make all the plots that go in the paper
  • small stuff

The work error stuff is not tested, because that's difficult to do, so coverage may go down a bit :(

@codecov
Copy link

codecov bot commented Apr 26, 2023

Codecov Report

Patch coverage: 47.16% and project coverage change: -0.39 ⚠️

Comparison is base (e678925) 73.08% compared to head (a3d39f6) 72.69%.

❗ Current head a3d39f6 differs from pull request most recent head f803dbe. Consider uploading reports for the commit f803dbe to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #296      +/-   ##
==========================================
- Coverage   73.08%   72.69%   -0.39%     
==========================================
  Files         250      252       +2     
  Lines       20666    20997     +331     
==========================================
+ Hits        15103    15264     +161     
- Misses       5563     5733     +170     
Impacted Files Coverage Δ
pySDC/projects/Resilience/paper_plots.py 0.00% <0.00%> (ø)
pySDC/projects/Resilience/work_precision.py 0.00% <0.00%> (ø)
pySDC/implementations/problem_classes/Quench.py 73.37% <28.26%> (ø)
pySDC/projects/Resilience/quench.py 49.05% <49.05%> (ø)
...ySDC/projects/Resilience/extrapolation_within_Q.py 85.10% <50.00%> (+0.66%) ⬆️
pySDC/projects/Resilience/heat.py 25.71% <50.00%> (+5.71%) ⬆️
pySDC/projects/Resilience/fault_stats.py 70.44% <64.93%> (+23.28%) ⬆️
pySDC/projects/Resilience/Schroedinger.py 88.40% <65.00%> (+0.90%) ⬆️
pySDC/projects/Resilience/strategies.py 65.04% <65.04%> (ø)
pySDC/projects/Resilience/vdp.py 92.22% <80.00%> (-3.70%) ⬇️
... and 5 more

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@pancetta
Copy link
Member

Looks like you managed to create the new leader in the list of slowest tests.. https://github.com/Parallel-in-Time/pySDC/actions/runs/4819699085/jobs/8583242135?pr=296#step:4:263

@pancetta pancetta merged commit 8e5f51f into Parallel-in-Time:master May 2, 2023
brownbaerchen added a commit to brownbaerchen/pySDC that referenced this pull request Nov 4, 2025
#!!!!!!!!!! WARNING: RUFF FAILED !!!!!!!!!!: 

#pySDC/projects/GPU/analysis_scripts/compare_RBC3D.py:298:5: F841 Local variable `data` is assigned to but never used
#    |
Parallel-in-Time#296 |     res = 32
Parallel-in-Time#297 |
Parallel-in-Time#298 |     data = []
#    |     ^^^^ F841
Parallel-in-Time#299 |     labels = []
Parallel-in-Time#300 |     linestyles = []
#    |
#    = help: Remove assignment to unused variable `data`
#
#pySDC/projects/GPU/analysis_scripts/compare_RBC3D.py:299:5: F841 Local variable `labels` is assigned to but never used
#    |
Parallel-in-Time#298 |     data = []
Parallel-in-Time#299 |     labels = []
#    |     ^^^^^^ F841
Parallel-in-Time#300 |     linestyles = []
#    |
#    = help: Remove assignment to unused variable `labels`
#
#pySDC/projects/GPU/analysis_scripts/compare_RBC3D.py:300:5: F841 Local variable `linestyles` is assigned to but never used
#    |
Parallel-in-Time#298 |     data = []
Parallel-in-Time#299 |     labels = []
Parallel-in-Time#300 |     linestyles = []
#    |     ^^^^^^^^^^ F841
Parallel-in-Time#301 |
Parallel-in-Time#302 |     ref_data = get_pySDC_data(Ra, res=res, dt=0.01, config_name='RBC3DG4R4')
#    |
#    = help: Remove assignment to unused variable `linestyles`
#
#pySDC/projects/GPU/analysis_scripts/compare_RBC3D.py:312:9: F841 Local variable `t` is assigned to but never used
#    |
Parallel-in-Time#310 |         ax.set_title(title)
Parallel-in-Time#311 |         Nu_ref = np.array(ref['Nu']['V'])
Parallel-in-Time#312 |         t = ref['t']
#    |         ^ F841
Parallel-in-Time#313 |
Parallel-in-Time#314 |         for dt in dts:
#    |
#    = help: Remove assignment to unused variable `t`
#
#pySDC/projects/GPU/analysis_scripts/compare_RBC3D.py:587:9: E722 Do not use bare `except`
#    |
Parallel-in-Time#585 |                 k[_s > 1e-16], _s[_s > 1e-16], color=last_line.get_color(), ls=last_line.get_linestyle(), label=label
Parallel-in-Time#586 |             )
Parallel-in-Time#587 |         except:
#    |         ^^^^^^ E722
Parallel-in-Time#588 |             pass
#    |
#
#pySDC/projects/GPU/analysis_scripts/compare_RBC3D.py:686:5: F841 Local variable `Delta_Nu` is assigned to but never used
#    |
#684 |     t = data['t']
#685 |     avg_Nu = np.array([np.mean(Nu[40 : 40 + i + 1]) for i in range(len(Nu[40:]))])
#686 |     Delta_Nu = np.array([abs(avg_Nu[i + 1] - avg_Nu[i]) for i in range(len(avg_Nu) - 1)])
#    |     ^^^^^^^^ F841
#687 |     # ax.plot(data['t'][40:-1], Delta_Nu / avg_Nu[:-1])
#688 |     # ax.plot(data['t'], np.abs(avg_Nu - avg_Nu[-1]) / avg_Nu[-1])
#    |
#    = help: Remove assignment to unused variable `Delta_Nu`:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants