Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/tutorials/PIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ domains = [t ∈ Interval(0.0, 2.0), x ∈ Interval(xmin, xmax)]
@named pde_system = PDESystem(eq, bcs, domains, [t, x], [u(t, x), cumuSum(t, x)])

order = 2
discretization = MOLFiniteDifference([x => 30], t)
discretization = MOLFiniteDifference([x => 30], t, approx_order = order)

prob = MethodOfLines.discretize(pde_system, discretization)
sol = solve(prob, QNDF(), saveat = 0.1);
Expand Down
6 changes: 3 additions & 3 deletions docs/src/tutorials/heat.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ domains = [t ∈ Interval(0.0, 1.0),
# Method of lines discretization
dx = 0.1
order = 2
discretization = MOLFiniteDifference([x => dx], t)
discretization = MOLFiniteDifference([x => dx], t, approx_order = order)

# Convert the PDE problem into an ODE problem
prob = discretize(pdesys, discretization)
Expand Down Expand Up @@ -87,7 +87,7 @@ domains = [t ∈ Interval(0.0, 1.0),
# Need a small dx here for accuracy
dx = 0.01
order = 2
discretization = MOLFiniteDifference([x => dx], t)
discretization = MOLFiniteDifference([x => dx], t, approx_order = order)

# Convert the PDE problem into an ODE problem
prob = discretize(pdesys, discretization)
Expand Down Expand Up @@ -144,7 +144,7 @@ domains = [t ∈ Interval(0.0, 1.0),
# Need a small dx here for accuracy
dx = 0.05
order = 2
discretization = MOLFiniteDifference([x => dx], t)
discretization = MOLFiniteDifference([x => dx], t, approx_order = order)

# Convert the PDE problem into an ODE problem
prob = discretize(pdesys, discretization)
Expand Down
2 changes: 1 addition & 1 deletion docs/src/tutorials/sispde.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ domains = [t ∈ Interval(0.0, 10.0),
# Need a small dx here for accuracy
dx = 0.01
order = 2
discretization = MOLFiniteDifference([x => dx], t)
discretization = MOLFiniteDifference([x => dx], t, approx_order = order)

# Convert the PDE problem into an ODE problem
prob = discretize(pdesys, discretization);
Expand Down