Skip to content

Commit df50b90

Browse files
committed
change to instance of Val{fdtype}
1 parent c0c3955 commit df50b90

File tree

9 files changed

+59
-59
lines changed

9 files changed

+59
-59
lines changed

lib/OrdinaryDiffEqBDF/src/algorithms.jl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function BDF_docstring(description::String,
88
autodiff = AutoForwardDiff(),
99
standardtag = Val{true}(),
1010
concrete_jac = nothing,
11-
diff_type = Val{:forward},
11+
diff_type = Val{:forward}(),
1212
linsolve = nothing,
1313
precs = DEFAULT_PRECS,
1414
""" * "\n" * extra_keyword_default
@@ -115,7 +115,7 @@ struct ABDF2{CS, AD, F, F2, P, FDT, ST, CJ, K, T, StepLimiter} <:
115115
autodiff::AD
116116
end
117117
function ABDF2(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(), standardtag = Val{true}(),
118-
concrete_jac = nothing, diff_type = Val{:forward},
118+
concrete_jac = nothing, diff_type = Val{:forward}(),
119119
κ = nothing, tol = nothing, linsolve = nothing, precs = DEFAULT_PRECS,
120120
nlsolve = NLNewton(),
121121
smooth_est = true, extrapolant = :linear,
@@ -175,7 +175,7 @@ struct SBDF{CS, AD, F, F2, P, FDT, ST, CJ, K, T} <:
175175
end
176176

177177
function SBDF(order; chunk_size = Val{0}(), autodiff = AutoForwardDiff(),
178-
standardtag = Val{true}(), concrete_jac = nothing, diff_type = Val{:forward},
178+
standardtag = Val{true}(), concrete_jac = nothing, diff_type = Val{:forward}(),
179179
linsolve = nothing, precs = DEFAULT_PRECS, nlsolve = NLNewton(), κ = nothing,
180180
tol = nothing,
181181
extrapolant = :linear, ark = false)
@@ -197,7 +197,7 @@ end
197197

198198
# All keyword form needed for remake
199199
function SBDF(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(), standardtag = Val{true}(),
200-
concrete_jac = nothing, diff_type = Val{:forward},
200+
concrete_jac = nothing, diff_type = Val{:forward}(),
201201
linsolve = nothing, precs = DEFAULT_PRECS, nlsolve = NLNewton(), κ = nothing,
202202
tol = nothing,
203203
extrapolant = :linear,
@@ -304,7 +304,7 @@ struct QNDF1{CS, AD, F, F2, P, FDT, ST, CJ, κType, StepLimiter} <:
304304
end
305305

306306
function QNDF1(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(), standardtag = Val{true}(),
307-
concrete_jac = nothing, diff_type = Val{:forward},
307+
concrete_jac = nothing, diff_type = Val{:forward}(),
308308
linsolve = nothing, precs = DEFAULT_PRECS, nlsolve = NLNewton(),
309309
extrapolant = :linear, kappa = -37 // 200,
310310
controller = :Standard, step_limiter! = trivial_limiter!)
@@ -364,7 +364,7 @@ struct QNDF2{CS, AD, F, F2, P, FDT, ST, CJ, κType, StepLimiter} <:
364364
end
365365

366366
function QNDF2(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(), standardtag = Val{true}(),
367-
concrete_jac = nothing, diff_type = Val{:forward},
367+
concrete_jac = nothing, diff_type = Val{:forward}(),
368368
linsolve = nothing, precs = DEFAULT_PRECS, nlsolve = NLNewton(),
369369
extrapolant = :linear, kappa = -1 // 9,
370370
controller = :Standard, step_limiter! = trivial_limiter!)
@@ -433,7 +433,7 @@ end
433433

434434
function QNDF(; max_order::Val{MO} = Val{5}(), chunk_size = Val{0}(),
435435
autodiff = AutoForwardDiff(), standardtag = Val{true}(), concrete_jac = nothing,
436-
diff_type = Val{:forward},
436+
diff_type = Val{:forward}(),
437437
linsolve = nothing, precs = DEFAULT_PRECS, nlsolve = NLNewton(), κ = nothing,
438438
tol = nothing,
439439
extrapolant = :linear, kappa = (
@@ -482,7 +482,7 @@ struct MEBDF2{CS, AD, F, F2, P, FDT, ST, CJ} <:
482482
autodiff::AD
483483
end
484484
function MEBDF2(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(), standardtag = Val{true}(),
485-
concrete_jac = nothing, diff_type = Val{:forward},
485+
concrete_jac = nothing, diff_type = Val{:forward}(),
486486
linsolve = nothing, precs = DEFAULT_PRECS, nlsolve = NLNewton(),
487487
extrapolant = :constant)
488488

@@ -541,7 +541,7 @@ end
541541

542542
function FBDF(; max_order::Val{MO} = Val{5}(), chunk_size = Val{0}(),
543543
autodiff = AutoForwardDiff(), standardtag = Val{true}(), concrete_jac = nothing,
544-
diff_type = Val{:forward},
544+
diff_type = Val{:forward}(),
545545
linsolve = nothing, precs = DEFAULT_PRECS, nlsolve = NLNewton(), κ = nothing,
546546
tol = nothing,
547547
extrapolant = :linear, controller = :Standard, step_limiter! = trivial_limiter!) where {MO}
@@ -660,7 +660,7 @@ struct DImplicitEuler{CS, AD, F, F2, P, FDT, ST, CJ} <: DAEAlgorithm{CS, AD, FDT
660660
end
661661
function DImplicitEuler(;
662662
chunk_size = Val{0}(), autodiff = AutoForwardDiff(), standardtag = Val{true}(),
663-
concrete_jac = nothing, diff_type = Val{:forward},
663+
concrete_jac = nothing, diff_type = Val{:forward}(),
664664
linsolve = nothing, precs = DEFAULT_PRECS, nlsolve = NLNewton(),
665665
extrapolant = :constant,
666666
controller = :Standard)
@@ -702,7 +702,7 @@ struct DABDF2{CS, AD, F, F2, P, FDT, ST, CJ} <: DAEAlgorithm{CS, AD, FDT, ST, CJ
702702
autodiff::AD
703703
end
704704
function DABDF2(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(), standardtag = Val{true}(),
705-
concrete_jac = nothing, diff_type = Val{:forward},
705+
concrete_jac = nothing, diff_type = Val{:forward}(),
706706
linsolve = nothing, precs = DEFAULT_PRECS, nlsolve = NLNewton(),
707707
extrapolant = :constant,
708708
controller = :Standard)
@@ -766,7 +766,7 @@ struct DFBDF{MO, CS, AD, F, F2, P, FDT, ST, CJ, K, T} <: DAEAlgorithm{CS, AD, FD
766766
end
767767
function DFBDF(; max_order::Val{MO} = Val{5}(), chunk_size = Val{0}(),
768768
autodiff = AutoForwardDiff(), standardtag = Val{true}(), concrete_jac = nothing,
769-
diff_type = Val{:forward},
769+
diff_type = Val{:forward}(),
770770
linsolve = nothing, precs = DEFAULT_PRECS, nlsolve = NLNewton(), κ = nothing,
771771
tol = nothing,
772772
extrapolant = :linear, controller = :Standard) where {MO}

lib/OrdinaryDiffEqExponentialRK/src/algorithms.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ for (Alg, Description, Ref) in [
3838
@eval function $Alg(; krylov = false, m = 30, iop = 0, autodiff = AutoForwardDiff(),
3939
standardtag = Val{true}(), concrete_jac = nothing,
4040
chunk_size = Val{0}(),
41-
diff_type = Val{:forward})
41+
diff_type = Val{:forward}())
4242

4343
AD_choice = _process_AD_choice(autodiff, chunk_size, diff_type)
4444

@@ -82,7 +82,7 @@ for (Alg, Description, Ref) in [
8282
end
8383
@eval function $Alg(; m = 30, iop = 0, autodiff = AutoForwardDiff(), standardtag = Val{true}(),
8484
concrete_jac = nothing, chunk_size = Val{0}(),
85-
diff_type = Val{:forward})
85+
diff_type = Val{:forward}())
8686

8787
AD_choice = _process_AD_choice(autodiff, chunk_size, diff_type)
8888

@@ -144,7 +144,7 @@ for (Alg, Description, Ref) in [(:Exp4, "4th order EPIRK scheme.", REF3)
144144
end
145145
@eval function $Alg(; adaptive_krylov = true, m = 30, iop = 0, autodiff = AutoForwardDiff(),
146146
standardtag = Val{true}(), concrete_jac = nothing,
147-
chunk_size = Val{0}(), diff_type = Val{:forward})
147+
chunk_size = Val{0}(), diff_type = Val{:forward}())
148148

149149
AD_choice = _process_AD_choice(autodiff, chunk_size, diff_type)
150150

lib/OrdinaryDiffEqExtrapolation/src/algorithms.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ end
6969

7070
function ImplicitEulerExtrapolation(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(),
7171
standardtag = Val{true}(), concrete_jac = nothing,
72-
diff_type = Val{:forward}, linsolve = nothing,
72+
diff_type = Val{:forward}(), linsolve = nothing,
7373
precs = DEFAULT_PRECS,
7474
max_order = 12, min_order = 3, init_order = 5,
7575
threading = false, sequence = :harmonic)
@@ -213,7 +213,7 @@ end
213213
function ImplicitDeuflhardExtrapolation(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(),
214214
standardtag = Val{true}(), concrete_jac = nothing,
215215
linsolve = nothing, precs = DEFAULT_PRECS,
216-
diff_type = Val{:forward},
216+
diff_type = Val{:forward}(),
217217
min_order = 1, init_order = 5, max_order = 10,
218218
sequence = :harmonic, threading = false)
219219

@@ -366,7 +366,7 @@ function ImplicitHairerWannerExtrapolation(; chunk_size = Val{0}(), autodiff = A
366366
standardtag = Val{true}(),
367367
concrete_jac = nothing,
368368
linsolve = nothing, precs = DEFAULT_PRECS,
369-
diff_type = Val{:forward},
369+
diff_type = Val{:forward}(),
370370
min_order = 2, init_order = 5, max_order = 10,
371371
sequence = :harmonic, threading = false)
372372

@@ -449,7 +449,7 @@ function ImplicitEulerBarycentricExtrapolation(; chunk_size = Val{0}(),
449449
standardtag = Val{true}(),
450450
concrete_jac = nothing,
451451
linsolve = nothing, precs = DEFAULT_PRECS,
452-
diff_type = Val{:forward},
452+
diff_type = Val{:forward}(),
453453
min_order = 3, init_order = 5,
454454
max_order = 12, sequence = :harmonic,
455455
threading = false, sequence_factor = 2)

lib/OrdinaryDiffEqFIRK/src/algorithms.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ end
4242

4343
function RadauIIA3(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(),
4444
standardtag = Val{true}(), concrete_jac = nothing,
45-
diff_type = Val{:forward},
45+
diff_type = Val{:forward}(),
4646
linsolve = nothing, precs = DEFAULT_PRECS,
4747
extrapolant = :dense, fast_convergence_cutoff = 1 // 5,
4848
new_W_γdt_cutoff = 1 // 5,
@@ -91,7 +91,7 @@ end
9191

9292
function RadauIIA5(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(),
9393
standardtag = Val{true}(), concrete_jac = nothing,
94-
diff_type = Val{:forward},
94+
diff_type = Val{:forward}(),
9595
linsolve = nothing, precs = DEFAULT_PRECS,
9696
extrapolant = :dense, fast_convergence_cutoff = 1 // 5,
9797
new_W_γdt_cutoff = 1 // 5,
@@ -141,7 +141,7 @@ end
141141

142142
function RadauIIA9(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(),
143143
standardtag = Val{true}(), concrete_jac = nothing,
144-
diff_type = Val{:forward},
144+
diff_type = Val{:forward}(),
145145
linsolve = nothing, precs = DEFAULT_PRECS,
146146
extrapolant = :dense, fast_convergence_cutoff = 1 // 5,
147147
new_W_γdt_cutoff = 1 // 5,
@@ -185,7 +185,7 @@ end
185185

186186
function AdaptiveRadau(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(),
187187
standardtag = Val{true}(), concrete_jac = nothing,
188-
diff_type = Val{:forward}, min_order = 5, max_order = 13,
188+
diff_type = Val{:forward}(), min_order = 5, max_order = 13,
189189
linsolve = nothing, precs = DEFAULT_PRECS,
190190
extrapolant = :dense, fast_convergence_cutoff = 1 // 5,
191191
new_W_γdt_cutoff = 1 // 5,

lib/OrdinaryDiffEqIMEXMultistep/src/algorithms.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct CNAB2{CS, AD, F, F2, P, FDT, ST, CJ} <:
3030
end
3131

3232
function CNAB2(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(), standardtag = Val{true}(),
33-
concrete_jac = nothing, diff_type = Val{:forward},
33+
concrete_jac = nothing, diff_type = Val{:forward}(),
3434
linsolve = nothing, precs = DEFAULT_PRECS, nlsolve = NLNewton(),
3535
extrapolant = :linear)
3636

@@ -74,7 +74,7 @@ struct CNLF2{CS, AD, F, F2, P, FDT, ST, CJ} <:
7474
autodiff::AD
7575
end
7676
function CNLF2(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(), standardtag = Val{true}(),
77-
concrete_jac = nothing, diff_type = Val{:forward},
77+
concrete_jac = nothing, diff_type = Val{:forward}(),
7878
linsolve = nothing, precs = DEFAULT_PRECS, nlsolve = NLNewton(),
7979
extrapolant = :linear)
8080

lib/OrdinaryDiffEqPDIRK/src/algorithms.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct PDIRK44{CS, AD, F, F2, P, FDT, ST, CJ, TO} <:
3131
autodiff::AD
3232
end
3333
function PDIRK44(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(), standardtag = Val{true}(),
34-
concrete_jac = nothing, diff_type = Val{:forward},
34+
concrete_jac = nothing, diff_type = Val{:forward}(),
3535
linsolve = nothing, precs = DEFAULT_PRECS, nlsolve = NLNewton(),
3636
extrapolant = :constant, threading = true)
3737

lib/OrdinaryDiffEqRosenbrock/src/algorithms.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ for Alg in [
114114
end
115115
function $Alg(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(),
116116
standardtag = Val{true}(), concrete_jac = nothing,
117-
diff_type = Val{:forward}, linsolve = nothing,
117+
diff_type = Val{:forward}(), linsolve = nothing,
118118
precs = DEFAULT_PRECS, step_limiter! = trivial_limiter!,
119119
stage_limiter! = trivial_limiter!)
120120

@@ -204,7 +204,7 @@ for Alg in [
204204
end
205205
function $Alg(; chunk_size = Val{0}(), autodiff = AutoForwardDiff(),
206206
standardtag = Val{true}(), concrete_jac = nothing,
207-
diff_type = Val{:forward}, linsolve = nothing, precs = DEFAULT_PRECS)
207+
diff_type = Val{:forward}(), linsolve = nothing, precs = DEFAULT_PRECS)
208208

209209
AD_choice = _process_AD_choice(autodiff, chunk_size, diff_type)
210210

0 commit comments

Comments
 (0)