Skip to content

Commit

Permalink
TL: minor corrections to the parallelSDC_reloaded scripts (#488)
Browse files Browse the repository at this point in the history
* TL: dump version

* TL: minor modifications on the parallelSDC_reloaded scripts

* TL: forgot to save ...
  • Loading branch information
tlunet authored Sep 20, 2024
1 parent eb55193 commit 8420a47
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions pySDC/projects/parallelSDC_reloaded/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ See the `scripts` folder, all python scripts have the `fig0[...]` prefix, and ea
from the manuscript.
One can run everything with the `run.sh` script, and crop the pdf figures to the format used in the manuscript with the `crop.sh` script.

Note that most scripts generate error vs cost figure using a cost modeling of the simulation that counts the
number of Newton iterations and RHS evaluation.
This can be switched to a estimation of the cost using runtime measurements by :

- modifying the return statement in the `getCost` function by `return tComp`
- changing the `xlabel="Cost"` in the `plt.gca().set` call into `xlabel="Computation time [s]"`
- commenting the `xlim` argument in the `plt.gca().set` call

Experimental scripts
--------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
for figName in [figNameConv, figNameCost]:
plt.figure(figName)
plt.gca().set(
xlabel="Computation Time" if "cost" in figName else r"$\Delta {t}$",
xlabel="Computation Time [s]" if "cost" in figName else r"$\Delta {t}$",
ylabel=r"$L_2$ error at $T$",
)
plt.legend()
Expand Down

0 comments on commit 8420a47

Please sign in to comment.