Skip to content

Commit 608eba5

Browse files
nathanemacdpo
authored andcommitted
add tolerance parameter in fh
1 parent 8c8d001 commit 608eba5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/fh_model.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export fh_model, fh_nls_model
22

3-
function FH_smooth_term()
3+
function FH_smooth_term(; abstol = 1e-14, reltol = 1e-14)
44
# FH model = van-der-Pol oscillator when I = b = c = 0
55
# x' = μ(x - x^3/3 - y)
66
# y' = x/μ -> here μ = 12.5
@@ -34,8 +34,8 @@ function FH_smooth_term()
3434
sol = DifferentialEquations.solve(
3535
temp_prob,
3636
DifferentialEquations.Vern9(),
37-
abstol = 1e-14,
38-
reltol = 1e-14,
37+
abstol = abstol,
38+
reltol = reltol,
3939
saveat = savetime,
4040
)
4141
# if any((sol.retcode != :Success for s in sol))

0 commit comments

Comments
 (0)