From fdd57feef9247f9c868de8e58fe0b51697cbb1c9 Mon Sep 17 00:00:00 2001 From: Gabriel Gerlero Date: Fri, 22 Dec 2023 22:37:11 -0300 Subject: [PATCH] Update MathiasAndSander --- src/pseudospectral.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]