Skip to content

Commit e17cf29

Browse files
authored
change conversion_type to hasconversion in DefaultDerivative/DefaultIntegral (#473)
1 parent 92e2425 commit e17cf29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Operators/banded/CalculusOperator.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ end
192192
if nameof(typeof(canonicaldomain(sp))) == nameof(typeof(domain(sp)))
193193
# this is the normal default constructor
194194
csp=canonicalspace(sp)
195-
if conversion_type(csp,sp)==csp # Conversion(sp,csp) is not banded, or sp==csp
195+
if sp == csp || !hasconversion(sp,csp) # Conversion(sp,csp) is not banded, or sp==csp
196196
error("Implement Derivative(", sp, ",", k,")")
197197
end
198198
D = Derivative(csp,k)
@@ -235,7 +235,7 @@ end
235235
if nameof(typeof(canonicaldomain(sp))) == nameof(typeof(domain(sp)))
236236
# this is the normal default constructor
237237
csp=canonicalspace(sp)
238-
if conversion_type(csp,sp)==csp # Conversion(sp,csp) is not banded, or sp==csp
238+
if sp == csp || !hasconversion(sp,csp) # Conversion(sp,csp) is not banded, or sp==csp
239239
# we require that Integral is overridden
240240
error("Implement Integral($(string(sp)),$k)")
241241
end

0 commit comments

Comments
 (0)