@@ -289,11 +289,6 @@ the usage of `f`. These include:
289
289
based on the sparsity pattern. Defaults to `nothing`, which means a color vector will be
290
290
internally computed on demand when required. The cost of this operation is highly dependent
291
291
on the sparsity pattern.
292
- - `nlprob`: a `NonlinearProblem` that solves `f(u, t, p) = u_tmp`
293
- where the nonlinear parameters are the tuple `(t, u_tmp, p)`.
294
- This will be used as the nonlinear problem inside an implicit solver by specifying `u, u_tmp` and `t`
295
- such that solving this function produces a solution to the implicit step of your solver.
296
-
297
292
## iip: In-Place vs Out-Of-Place
298
293
299
294
`iip` is the optional boolean for determining whether a given function is written to
@@ -424,7 +419,7 @@ struct ODEFunction{iip, specialize, F, TMM, Ta, Tt, TJ, JVP, VJP, JP, SP, TW, TW
424
419
colorvec:: TCV
425
420
sys:: SYS
426
421
initialization_data:: ID
427
- nlprob :: NLP
422
+ nlprob_data :: NLP
428
423
end
429
424
430
425
@doc doc"""
@@ -547,8 +542,8 @@ struct SplitFunction{
547
542
observed:: O
548
543
colorvec:: TCV
549
544
sys:: SYS
550
- nlprob:: NLP
551
545
initialization_data:: ID
546
+ nlprob_data:: NLP
552
547
end
553
548
554
549
@doc doc"""
@@ -2446,9 +2441,9 @@ function ODEFunction{iip, specialize}(f;
2446
2441
f. update_initializeprob! : nothing ,
2447
2442
initializeprobmap = __has_initializeprobmap (f) ? f. initializeprobmap : nothing ,
2448
2443
initializeprobpmap = __has_initializeprobpmap (f) ? f. initializeprobpmap : nothing ,
2449
- nlprob = __has_nlprob (f) ? f. nlprob : nothing ,
2450
2444
initialization_data = __has_initialization_data (f) ? f. initialization_data :
2451
2445
nothing
2446
+ nlprob_data = __has_nlprob_data (f) ? f. nlprob_data : nothing ,
2452
2447
) where {iip,
2453
2448
specialize
2454
2449
}
@@ -2509,7 +2504,7 @@ function ODEFunction{iip, specialize}(f;
2509
2504
typeof (sys), Any, Any}(_f, mass_matrix, analytic, tgrad, jac,
2510
2505
jvp, vjp, jac_prototype, sparsity, Wfact,
2511
2506
Wfact_t, W_prototype, paramjac,
2512
- observed, _colorvec, sys, initdata, nlprob )
2507
+ observed, _colorvec, sys, initdata, nlprob_data )
2513
2508
elseif specialize === false
2514
2509
ODEFunction{iip, FunctionWrapperSpecialize,
2515
2510
typeof (_f), typeof (mass_matrix), typeof (analytic), typeof (tgrad),
@@ -2518,11 +2513,11 @@ function ODEFunction{iip, specialize}(f;
2518
2513
typeof (paramjac),
2519
2514
typeof (observed),
2520
2515
typeof (_colorvec),
2521
- typeof (sys), typeof (initdata), typeof (nlprob )}(_f, mass_matrix,
2516
+ typeof (sys), typeof (initdata), typeof (nlprob_data )}(_f, mass_matrix,
2522
2517
analytic, tgrad, jac,
2523
2518
jvp, vjp, jac_prototype, sparsity, Wfact,
2524
2519
Wfact_t, W_prototype, paramjac,
2525
- observed, _colorvec, sys, initdata, nlprob )
2520
+ observed, _colorvec, sys, initdata, nlprob_data )
2526
2521
else
2527
2522
ODEFunction{iip, specialize,
2528
2523
typeof (_f), typeof (mass_matrix), typeof (analytic), typeof (tgrad),
@@ -2531,11 +2526,11 @@ function ODEFunction{iip, specialize}(f;
2531
2526
typeof (paramjac),
2532
2527
typeof (observed),
2533
2528
typeof (_colorvec),
2534
- typeof (sys), typeof (initdata), typeof (nlprob )}(
2529
+ typeof (sys), typeof (initdata), typeof (nlprob_data )}(
2535
2530
_f, mass_matrix, analytic, tgrad,
2536
2531
jac, jvp, vjp, jac_prototype, sparsity, Wfact,
2537
2532
Wfact_t, W_prototype, paramjac,
2538
- observed, _colorvec, sys, initdata, nlprob )
2533
+ observed, _colorvec, sys, initdata, nlprob_data )
2539
2534
end
2540
2535
end
2541
2536
@@ -2556,19 +2551,19 @@ function unwrapped_f(f::ODEFunction, newf = unwrapped_f(f.f))
2556
2551
newf, f. mass_matrix, f. analytic, f. tgrad, f. jac,
2557
2552
f. jvp, f. vjp, f. jac_prototype, f. sparsity, f. Wfact,
2558
2553
f. Wfact_t, f. W_prototype, f. paramjac,
2559
- f. observed, f. colorvec, f. sys, f. initialization_data, f. nlprob )
2554
+ f. observed, f. colorvec, f. sys, f. initialization_data, f. nlprob_data )
2560
2555
else
2561
2556
ODEFunction{isinplace (f), specialization (f), typeof (newf), typeof (f. mass_matrix),
2562
2557
typeof (f. analytic), typeof (f. tgrad),
2563
2558
typeof (f. jac), typeof (f. jvp), typeof (f. vjp), typeof (f. jac_prototype),
2564
2559
typeof (f. sparsity), typeof (f. Wfact), typeof (f. Wfact_t), typeof (f. W_prototype),
2565
2560
typeof (f. paramjac),
2566
2561
typeof (f. observed), typeof (f. colorvec),
2567
- typeof (f. sys), typeof (f. initialization_data), typeof (f. nlprob )}(
2562
+ typeof (f. sys), typeof (f. initialization_data), typeof (f. nlprob_data )}(
2568
2563
newf, f. mass_matrix, f. analytic, f. tgrad, f. jac,
2569
2564
f. jvp, f. vjp, f. jac_prototype, f. sparsity, f. Wfact,
2570
2565
f. Wfact_t, f. W_prototype, f. paramjac,
2571
- f. observed, f. colorvec, f. sys, f. initialization_data, f. nlprob )
2566
+ f. observed, f. colorvec, f. sys, f. initialization_data, f. nlprob_data )
2572
2567
end
2573
2568
end
2574
2569
@@ -2703,7 +2698,7 @@ end
2703
2698
@add_kwonly function SplitFunction (f1, f2, mass_matrix, cache, analytic, tgrad, jac, jvp,
2704
2699
vjp, jac_prototype, W_prototype, sparsity, Wfact, Wfact_t, paramjac,
2705
2700
observed, colorvec, sys, initializeprob = nothing , update_initializeprob! = nothing ,
2706
- initializeprobmap = nothing , initializeprobpmap = nothing , nlprob = nothing , initialization_data = nothing )
2701
+ initializeprobmap = nothing , initializeprobpmap = nothing , initialization_data = nothing , nlprob_data = nothing )
2707
2702
f1 = ODEFunction (f1)
2708
2703
f2 = ODEFunction (f2)
2709
2704
@@ -2721,11 +2716,11 @@ end
2721
2716
typeof (cache), typeof (analytic), typeof (tgrad), typeof (jac), typeof (jvp),
2722
2717
typeof (vjp), typeof (jac_prototype), typeof (W_prototype), typeof (sparsity),
2723
2718
typeof (Wfact), typeof (Wfact_t), typeof (paramjac), typeof (observed), typeof (colorvec),
2724
- typeof (sys), typeof (initdata), typeof (nlprob )}(
2719
+ typeof (sys), typeof (initdata), typeof (nlprob_data )}(
2725
2720
f1, f2, mass_matrix,
2726
2721
cache, analytic, tgrad, jac, jvp, vjp,
2727
2722
jac_prototype, W_prototype, sparsity, Wfact, Wfact_t, paramjac, observed, colorvec, sys,
2728
- initdata, nlprob )
2723
+ initdata, nlprob_data )
2729
2724
end
2730
2725
function SplitFunction {iip, specialize} (f1, f2;
2731
2726
mass_matrix = __has_mass_matrix (f1) ?
@@ -2762,7 +2757,7 @@ function SplitFunction{iip, specialize}(f1, f2;
2762
2757
f1. update_initializeprob! : nothing ,
2763
2758
initializeprobmap = __has_initializeprobmap (f1) ? f1. initializeprobmap : nothing ,
2764
2759
initializeprobpmap = __has_initializeprobpmap (f1) ? f1. initializeprobpmap : nothing ,
2765
- nlprob = __has_nlprob (f1) ? f1. nlprob : nothing ,
2760
+ nlprob_data = __has_nlprob_data (f1) ? f1. nlprob_data : nothing ,
2766
2761
initialization_data = __has_initialization_data (f1) ? f1. initialization_data :
2767
2762
nothing
2768
2763
) where {iip,
@@ -2780,19 +2775,19 @@ function SplitFunction{iip, specialize}(f1, f2;
2780
2775
analytic,
2781
2776
tgrad, jac, jvp, vjp, jac_prototype, W_prototype,
2782
2777
sparsity, Wfact, Wfact_t, paramjac,
2783
- observed, colorvec, sys, initdata, nlprob )
2778
+ observed, colorvec, sys, initdata, nlprob_data )
2784
2779
else
2785
2780
SplitFunction{iip, specialize, typeof (f1), typeof (f2), typeof (mass_matrix),
2786
2781
typeof (_func_cache), typeof (analytic),
2787
2782
typeof (tgrad), typeof (jac), typeof (jvp), typeof (vjp),
2788
2783
typeof (jac_prototype), typeof (W_prototype), typeof (sparsity),
2789
2784
typeof (Wfact), typeof (Wfact_t), typeof (paramjac), typeof (observed),
2790
2785
typeof (colorvec),
2791
- typeof (sys), typeof (initdata), typeof (nlprob )}(f1, f2,
2786
+ typeof (sys), typeof (initdata), typeof (nlprob_data )}(f1, f2,
2792
2787
mass_matrix, _func_cache, analytic, tgrad, jac,
2793
2788
jvp, vjp, jac_prototype, W_prototype,
2794
2789
sparsity, Wfact, Wfact_t, paramjac, observed, colorvec, sys,
2795
- initdata, nlprob )
2790
+ initdata, nlprob_data )
2796
2791
end
2797
2792
end
2798
2793
@@ -4488,7 +4483,7 @@ __has_colorvec(f) = isdefined(f, :colorvec)
4488
4483
__has_sys (f) = isdefined (f, :sys )
4489
4484
__has_analytic_full (f) = isdefined (f, :analytic_full )
4490
4485
__has_resid_prototype (f) = isdefined (f, :resid_prototype )
4491
- __has_nlprob (f) = isdefined (f, :nlprob )
4486
+ __has_nlprob_data (f) = isdefined (f, :nlprob_data )
4492
4487
function __has_initializeprob (f)
4493
4488
has_initialization_data (f) && isdefined (f. initialization_data, :initializeprob )
4494
4489
end
0 commit comments