Skip to content

Commit d6a43ce

Browse files
authored
use isinteger in assert_isinteger (#299)
* use isinteger * Relax Laplacian order
1 parent 4f1224c commit d6a43ce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ApproxFunBase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ promote_eltypeof(As::Union{AbstractArray, Tuple}) = mapfoldl(eltype, promote_typ
131131

132132
assert_integer(::Integer) = nothing
133133
function assert_integer(k::Number)
134-
@assert Integer(k) == k "order must be an integer"
134+
@assert isinteger(k) "order must be an integer"
135135
return nothing
136136
end
137137

src/PDE/PDE.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ lap(d::Domain) = Laplacian(d)
99
lap(f::Fun) = Laplacian()*f
1010

1111

12-
function Laplacian(d::BivariateSpace,k::Integer)
12+
function Laplacian(d::BivariateSpace, k::Number)
13+
assert_integer(k)
1314
Dx2=Derivative(d, SVector{2}(2,0))
1415
Dy2=Derivative(d, SVector{2}(0,2))
1516
if k==1

0 commit comments

Comments
 (0)