diff --git a/src/pseudospectral.jl b/src/pseudospectral.jl index b72d31bb..87e6a814 100644 --- a/src/pseudospectral.jl +++ b/src/pseudospectral.jl @@ -39,7 +39,7 @@ function solve(prob::DirichletProblem{<:DiffusionEquation{1}}, alg::MathiasAndSander; maxiters = 100) @argcheck iszero(prob.ob) "MathiasAndSander only supports fixed boundaries" - @argcheck isone(prob.eq._C) "MathiasAndSander only supports C = 1" + @argcheck prob.eq._C isa Number&&isone(prob.eq._C) "MathiasAndSander only supports C = 1" z, diff = chebdif(alg._N, 2) d_dz = diff[:, :, 1]