We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c8d001 commit 608eba5Copy full SHA for 608eba5
1 file changed
src/fh_model.jl
@@ -1,6 +1,6 @@
1
export fh_model, fh_nls_model
2
3
-function FH_smooth_term()
+function FH_smooth_term(; abstol = 1e-14, reltol = 1e-14)
4
# FH model = van-der-Pol oscillator when I = b = c = 0
5
# x' = μ(x - x^3/3 - y)
6
# y' = x/μ -> here μ = 12.5
@@ -34,8 +34,8 @@ function FH_smooth_term()
34
sol = DifferentialEquations.solve(
35
temp_prob,
36
DifferentialEquations.Vern9(),
37
- abstol = 1e-14,
38
- reltol = 1e-14,
+ abstol = abstol,
+ reltol = reltol,
39
saveat = savetime,
40
)
41
# if any((sol.retcode != :Success for s in sol))
0 commit comments