Skip to content

method error on julia 1.0 #2

@AshtonSBradley

Description

@AshtonSBradley

running Helmholtz rectangle PDE example on this page

https://github.com/JuliaApproximation/ApproxFunExamples/blob/master/PDEs/Rectangle%20PDEs.ipynb

d = (-1.0..1.0)^2

Δ = Laplacian(d)

@time u = \([Dirichlet(d);Δ+100I], [ones((d));0]; tolerance=1E-5)
plot(u)

gives

MethodError: no method matching Dirichlet(::Interval{Float64})
Closest candidates are:
  Dirichlet() at /Users/abradley/.julia/packages/ApproxFun/wFAIT/src/Operators/functionals/Evaluation.jl:181
  Dirichlet(!Matched::Chebyshev, !Matched::Any) at /Users/abradley/.julia/packages/ApproxFun/wFAIT/src/Spaces/Chebyshev/ChebyshevOperators.jl:128
  Dirichlet(!Matched::TensorSpace{Tuple{ChebyshevDirichlet{1,1,Segment{T},R1},ChebyshevDirichlet{1,1,Segment{T},R2}},D,R} where R where D, !Matched::Any) where {T, R1, R2} at /Users/abradley/.julia/packages/ApproxFun/wFAIT/src/Spaces/Ultraspherical/ContinuousSpace.jl:221

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions