Skip to content

Commit 7d14fbb

Browse files
Merge pull request #412 from SciML/sb/docs
docs: fix use of default values in PDESystem
2 parents d7e1e92 + daa0db0 commit 7d14fbb

File tree

4 files changed

+9
-16
lines changed

4 files changed

+9
-16
lines changed

docs/make.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ cp("./docs/Project.toml", "./docs/src/assets/Project.toml", force = true)
55

66
# Make sure that plots don't throw a bunch of warnings / errors!
77
ENV["GKSwstype"] = "100"
8+
ENV["JULIA_DEBUG"] = Documenter
89

910
include("pages.jl")
1011

docs/pages.jl

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pages = [
88
"tutorials/sispde.md",
99
"tutorials/icbc_sampled.md",
1010
"tutorials/PIDE.md",
11-
"tutorials/schroedinger.md",
11+
"tutorials/schroedinger.md"
1212
],
1313
"Performance Tips" => "performance.md",
1414
"MOLFiniteDifference" => "MOLFiniteDifference.md",
@@ -22,15 +22,5 @@ pages = [
2222
"How it Works" => "howitworks.md",
2323
"Notes for Developers: Implement a Scheme" => "devnotes.md",
2424
"Generated Examples" => ["generated/bruss_code.md", "generated/bruss_ode_eqs.md"],
25-
"API Reference" => ["api/discretization.md", "api/utils.md"],
26-
27-
# "Tutorial: Burgers" => "tutorials/burgers.md",
28-
# "Tutorial: 1D Linear Diffusion" => "tutorials/1d_linear_diffusion.md",
29-
# "Tutorial: 1D Non-Linear Diffusion" => "tutorials/1d_nonlinear_diffusion.md",
30-
# "Tutorial: 2D Diffusion" => "tutorials/2d_diffusion.md",
31-
# "Tutorial: 1D Linear Convection" => "tutorials/1d_linear_convection.md",
32-
# "Tutorial: 1D Higher Order" => "tutorials/1d_higher_order.md",
33-
# "Tutorial: Stationary Nonlinear Problems" => "tutorials/stationary_nonlinear_problems.md",
34-
# "Tutorial: 1D Partial DAE" => "tutorials/1d_partial_DAE.md",
35-
25+
"API Reference" => ["api/discretization.md", "api/utils.md"]
3626
]

docs/src/tutorials/params.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ domains = [t ∈ Interval(0.0, 1.0),
2323
x ∈ Interval(0.0, 1.0)]
2424
2525
@named pdesys = PDESystem(
26-
eqs, bcs, domains, [t, x], [u(t, x), v(t, x)], [Dn => 0.5, Dp => 2])
26+
eqs, bcs, domains, [t, x], [u(t, x), v(t, x)],
27+
[Dn, Dp]; defaults = Dict(Dn => 0.5, Dp => 2.0))
2728
2829
discretization = MOLFiniteDifference([x => 0.1], t)
2930
@@ -74,7 +75,8 @@ domains = [t ∈ Interval(0.0, 1.0),
7475
x ∈ Interval(0.0, 1.0)]
7576
7677
@named pdesys = PDESystem(
77-
eqs, bcs, domains, [t, x], [u(t, x), v(t, x)], [Dn => 0.5, Dp => 2.0])
78+
eqs, bcs, domains, [t, x], [u(t, x), v(t, x)],
79+
[Dn, Dp]; defaults = Dict(Dn => 0.5, Dp => 2.0))
7880
7981
discretization = MOLFiniteDifference([x => 0.1], t)
8082

docs/src/tutorials/sispde.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ domains = [t ∈ Interval(0.0, 10.0),
6868
x ∈ Interval(0.0, 1.0)]
6969
7070
# PDE system
71-
@named pdesys = PDESystem(eq, bcs, domains, [t, x], [S(t, x), I(t, x)],
72-
[dS => 0.5, dI => 0.1, brn => 3, ϵ => 0.1])
71+
@named pdesys = PDESystem(eq, bcs, domains, [t, x], [S(t, x), I(t, x)], [dS, dI, brn, ϵ];
72+
defaults = Dict(dS => 0.5, dI => 0.1, brn => 3, ϵ => 0.1))
7373
7474
# Method of lines discretization
7575
# Need a small dx here for accuracy

0 commit comments

Comments
 (0)