Skip to content
Merged
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
6 changes: 6 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
println("--- Adding OrdinaryDiffEq from master")
# Drop any stale dev checkout a previous run left in ~/.julia/dev so the
# current master is cloned fresh; a stale checkout can pin an old version
# that conflicts with the docs [compat] (e.g. OrdinaryDiffEq 6.x vs "7").
let p = joinpath(Pkg.devdir(), "OrdinaryDiffEq")
isdir(p) && rm(p; recursive = true, force = true)
end
Pkg.develop("OrdinaryDiffEq")
env:
DATADEPS_ALWAYS_ACCEPT: true
Expand Down
2 changes: 2 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ makedocs(
"https://docs.sciml.ai/DiffEqDocs/stable/features/dae_initialization/",
"https://www.sciencedirect.com/science/article/pii/S0096300304009683",
"https://github.com/JuliaDiff/FiniteDiff.jl",
"https://github.com/SciML/LinearSolve.jl",
"https://www.mathworks.com/help/matlab/math/nonnegative-ode-solution.html",
],
doctest = false, clean = true,
warnonly = [:missing_docs, :docs_block],
Expand Down
9 changes: 7 additions & 2 deletions docs/src/tutorials/advanced_ode_example.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,11 @@ which is more automatic. The setup is very similar to before:
```@example stiff1
import AlgebraicMultigrid
function algebraicmultigrid(W, p)
Pl = AlgebraicMultigrid.aspreconditioner(AlgebraicMultigrid.ruge_stuben(convert(AbstractMatrix, W)))
A = convert(AbstractMatrix, W)
# Use a direct (LU) coarse solver: AlgebraicMultigrid's default `Pinv` coarse solver
# forms a dense pseudo-inverse via SVD, which errors on the non-SPD `W = I - γJ`.
Pl = AlgebraicMultigrid.aspreconditioner(AlgebraicMultigrid.ruge_stuben(A;
coarse_solver = AlgebraicMultigrid.LinearSolveWrapper(LS.UMFPACKFactorization())))
Pl, LinearAlgebra.I
end

Expand All @@ -290,7 +294,8 @@ function algebraicmultigrid2(W, p)
A = convert(AbstractMatrix, W)
Pl = AlgebraicMultigrid.aspreconditioner(AlgebraicMultigrid.ruge_stuben(A,
presmoother = AlgebraicMultigrid.Jacobi(rand(size(A, 1))),
postsmoother = AlgebraicMultigrid.Jacobi(rand(size(A, 1)))))
postsmoother = AlgebraicMultigrid.Jacobi(rand(size(A, 1))),
coarse_solver = AlgebraicMultigrid.LinearSolveWrapper(LS.UMFPACKFactorization())))
Pl, LinearAlgebra.I
end

Expand Down
Loading