Skip to content

Commit

Permalink
Merge pull request #154 from HelgeGehring/julia-1.10.3
Browse files Browse the repository at this point in the history
update to Julia 1.10.3
  • Loading branch information
HelgeGehring authored May 1, 2024
2 parents 53b06b4 + 7f446a5 commit 53762c5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- uses: julia-actions/setup-julia@v2
with:
version: '1.10.0'
version: '1.10.3'
- uses: julia-actions/cache@v1
with:
cache-name: ${{ runner.os }}-${{ steps.get-date.outputs.date }}
Expand Down
26 changes: 14 additions & 12 deletions docs/benchmarks/mode_solver_rectangle.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
# ---
# jupyter:
# jupytext:
# formats: py:light,md:myst
# formats: py:percent,md:myst
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.14.4
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.15.0
# kernelspec:
# display_name: Python 3
# name: python3
# ---

# %% [markdown]
# # Benchmark of the mode solver 1

# %% [markdown]
# Reproducing {cite}`Hadley2002`, where the modes of a analytically solvable geometry are calculated.
# The error for all modes is calculated to be smaller than $\pm 1 \cdot 10^{-8}$.
# We'll show that we get pretty close, but will stop at a resonable resolution to keep the runtime sensible.
# Getting even higher accurancy will be left open for adaptive refinement.
# The results are presented here:

# + tags=["remove-stderr", "hide-input"]
# %% tags=["remove-stderr", "hide-input"]
from collections import OrderedDict

import numpy as np
Expand Down Expand Up @@ -87,16 +89,16 @@

pd.DataFrame(
{
"epsilons": [
"Epsilons": [
f"{epsilons['core']:.2f} / {epsilons['clad']:.2f}" for epsilons in epsilons_paper
],
"reference value": (f"{n:.8f}" for n in neff_values_paper),
"calculated value slepc": (f"{n:.8f}" for n in neff_values_femwell_slepc),
"difference slepc": (
"Reference value": (f"{n:.8f}" for n in neff_values_paper),
"Calculated value slepc": (f"{n:.8f}" for n in neff_values_femwell_slepc),
"Difference slepc": (
f"{n1-n2:.8f}" for n1, n2 in zip(neff_values_paper, neff_values_femwell_slepc)
),
"calculated value scipy": (f"{n:.8f}" for n in neff_values_femwell_scipy),
"difference scipy": (
"Calculated value scipy": (f"{n:.8f}" for n in neff_values_femwell_scipy),
"Difference scipy": (
f"{n1-n2:.8f}" for n1, n2 in zip(neff_values_paper, neff_values_femwell_scipy)
),
}
Expand All @@ -107,8 +109,8 @@
],
subset=["difference slepc", "difference scipy"],
)
# -

# %% [markdown]
# ## Bibliography
#
# ```{bibliography}
Expand Down

0 comments on commit 53762c5

Please sign in to comment.