Skip to content

Commit

Permalink
Update MathiasAndSander
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlero committed Dec 23, 2023
1 parent 7a84730 commit fdd57fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pseudospectral.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit fdd57fe

Please sign in to comment.