Skip to content

Commit a58c659

Browse files
committed
Fix history function
1 parent 7aa6e81 commit a58c659

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dde/ddetst.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,13 +1007,13 @@ function f_dde_DDETST_H1(u, h, p, t)
10071007
end
10081008

10091009
function h_dde_DDETST_H1(p, t)
1010-
t = zero(t) || error("history function is only implemented for t = 0")
1010+
iszero(t) || error("history function is only implemented for t = 0")
10111011

10121012
0.0
10131013
end
10141014

10151015
function h_dde_DDETST_H1(p, t, ::Type{Val{1}})
1016-
t = zero(t) || error("history function is only implemented for t = 0")
1016+
iszero(t) || error("history function is only implemented for t = 0")
10171017

10181018
0.0
10191019
end
@@ -1071,13 +1071,13 @@ let L₃ = 0.1
10711071
end
10721072

10731073
function h_dde_DDETST_H234(p, t)
1074-
t = zero(t) || error("history function is only implemented for t = 0")
1074+
iszero(t) || error("history function is only implemented for t = 0")
10751075

10761076
0.0
10771077
end
10781078

10791079
function h_dde_DDETST_H234(p, t, ::Type{Val{1}})
1080-
t = zero(t) || error("history function is only implemented for t = 0")
1080+
iszero(t) || error("history function is only implemented for t = 0")
10811081

10821082
1.0
10831083
end

0 commit comments

Comments
 (0)