Skip to content

Commit c56813f

Browse files
author
Michele Mesiti
committed
ABM algorithms: documentation of thread argument
1 parent c943f02 commit c56813f

File tree

1 file changed

+34
-30
lines changed

1 file changed

+34
-30
lines changed

lib/OrdinaryDiffEqAdamsBashforthMoulton/src/algorithms.jl

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,21 @@ reference = """E. Hairer, S. P. Norsett, G. Wanner, Solving Ordinary Differentia
33
Problems. Computational Mathematics (2nd revised ed.), Springer (1996) doi:
44
https://doi.org/10.1007/978-3-540-78862-1"""
55

6+
keyword_default_description = """
7+
- `thread`: determines whether internal broadcasting on appropriate CPU arrays should be serial (`thread = OrdinaryDiffEq.False()`) or use multiple threads (`thread = OrdinaryDiffEq.True()`) when Julia is started with multiple threads.
8+
"""
9+
10+
keyword_default = """
11+
thread = OrdinaryDiffEq.False(),
12+
"""
13+
614
@doc generic_solver_docstring("The 3-step third order multistep method.
715
Ralston's Second Order Method is used to calculate starting values.",
816
"AB3",
917
"Adams-Bashforth Explicit Method",
1018
reference,
11-
"",
12-
"")
13-
struct AB3{Thread} <: OrdinaryDiffEqAlgorithm
14-
thread::Thread
15-
end
16-
19+
keyword_default_description,
20+
keyword_default)
1721
Base.@kwdef struct AB3{Thread} <: OrdinaryDiffEqAlgorithm
1822
thread::Thread = False()
1923
end
@@ -23,8 +27,8 @@ end
2327
"AB4",
2428
"Adams-Bashforth Explicit Method",
2529
reference,
26-
"",
27-
"")
30+
keyword_default_description,
31+
keyword_default)
2832
Base.@kwdef struct AB4{Thread} <: OrdinaryDiffEqAlgorithm
2933
thread::Thread = False()
3034
end
@@ -34,8 +38,8 @@ end
3438
"AB5",
3539
"Adams-Bashforth Explicit Method",
3640
reference,
37-
"",
38-
"")
41+
keyword_default_description,
42+
keyword_default)
3943
Base.@kwdef struct AB5{Thread} <: OrdinaryDiffEqAlgorithm
4044
thread::Thread = False()
4145
end
@@ -46,8 +50,8 @@ end
4650
"ABM32",
4751
"Adams-Bashforth Explicit Method",
4852
reference,
49-
"",
50-
"")
53+
keyword_default_description,
54+
keyword_default)
5155
Base.@kwdef struct ABM32{Thread} <: OrdinaryDiffEqAlgorithm
5256
thread::Thread = False()
5357
end
@@ -58,8 +62,8 @@ end
5862
"ABM43",
5963
"Adams-Bashforth Explicit Method",
6064
reference,
61-
"",
62-
"")
65+
keyword_default_description,
66+
keyword_default)
6367
Base.@kwdef struct ABM43{Thread} <: OrdinaryDiffEqAlgorithm
6468
thread::Thread = False()
6569
end
@@ -70,8 +74,8 @@ end
7074
"ABM54",
7175
"Adams-Bashforth Explicit Method",
7276
reference,
73-
"",
74-
"")
77+
keyword_default_description,
78+
keyword_default)
7579
Base.@kwdef struct ABM54{Thread} <: OrdinaryDiffEqAlgorithm
7680
thread::Thread = False()
7781
end
@@ -83,8 +87,8 @@ end
8387
"VCAB3",
8488
"Adams explicit Method",
8589
reference,
86-
"",
87-
"")
90+
keyword_default_description,
91+
keyword_default)
8892
Base.@kwdef struct VCAB3{Thread} <: OrdinaryDiffEqAdaptiveAlgorithm
8993
thread::Thread = False()
9094
end
@@ -94,8 +98,8 @@ end
9498
"VCAB4",
9599
"Adams explicit Method",
96100
reference,
97-
"",
98-
"")
101+
keyword_default_description,
102+
keyword_default)
99103
Base.@kwdef struct VCAB4{Thread} <: OrdinaryDiffEqAdaptiveAlgorithm
100104
thread::Thread = False()
101105
end
@@ -105,8 +109,8 @@ end
105109
"VCAB5",
106110
"Adams explicit Method",
107111
reference,
108-
"",
109-
"")
112+
keyword_default_description,
113+
keyword_default)
110114
Base.@kwdef struct VCAB5{Thread} <: OrdinaryDiffEqAdaptiveAlgorithm
111115
thread::Thread = False()
112116
end
@@ -116,8 +120,8 @@ end
116120
"VCABM3",
117121
"Adams explicit Method",
118122
reference,
119-
"",
120-
"")
123+
keyword_default_description,
124+
keyword_default)
121125
Base.@kwdef struct VCABM3{Thread} <: OrdinaryDiffEqAdaptiveAlgorithm
122126
thread::Thread = False()
123127
end
@@ -127,8 +131,8 @@ end
127131
"VCABM4",
128132
"Adams explicit Method",
129133
reference,
130-
"",
131-
"")
134+
keyword_default_description,
135+
keyword_default)
132136
Base.@kwdef struct VCABM4{Thread} <: OrdinaryDiffEqAdaptiveAlgorithm
133137
thread::Thread = False()
134138
end
@@ -138,8 +142,8 @@ end
138142
"VCABM5",
139143
"Adams explicit Method",
140144
reference,
141-
"",
142-
"")
145+
keyword_default_description,
146+
keyword_default)
143147
Base.@kwdef struct VCABM5{Thread} <: OrdinaryDiffEqAdaptiveAlgorithm
144148
thread::Thread = False()
145149
end
@@ -151,8 +155,8 @@ end
151155
"VCABM",
152156
"adaptive order Adams explicit Method",
153157
reference,
154-
"",
155-
"")
158+
keyword_default_description,
159+
keyword_default)
156160
Base.@kwdef struct VCABM{Thread} <: OrdinaryDiffEqAdamsVarOrderVarStepAlgorithm
157161
thread::Thread = False()
158162
end

0 commit comments

Comments
 (0)