Skip to content

Commit 1628619

Browse files
Fix MIRK QA public API checks
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
1 parent 614e9bd commit 1628619

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

lib/BoundaryValueDiffEqMIRK/src/BoundaryValueDiffEqMIRK.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ using BoundaryValueDiffEqCore: BoundaryValueDiffEqCore,
1212
__concrete_solve_algorithm, diff!, EvalSol,
1313
concrete_jacobian_algorithm, eval_bc_residual,
1414
eval_bc_residual!, __maybe_matmul!, __resize!,
15-
__extract_problem_details, interval,
16-
__needs_diffcache, __maybe_allocate_diffcache,
15+
__extract_problem_details, interval, nodual_value,
16+
__maybe_allocate_diffcache,
1717
__restructure_sol, __cache_trait, __get_bcresid_prototype,
1818
safe_similar, __vec, __vec_f, __vec_f!, __vec_bc, __vec_bc!,
1919
recursive_flatten_twopoint!,

lib/BoundaryValueDiffEqMIRK/src/interpolation.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,10 @@ function __stage_weighted_zero(prototype, k, weights)
218218
return fill!(similar(prototype, T), zero(T))
219219
end
220220

221-
@inline __primal_value(x) = x
222-
@inline __primal_value(x::ForwardDiff.Dual) = __primal_value(ForwardDiff.value(x))
221+
@inline function __primal_value(x)
222+
y = nodual_value(x)
223+
return y === x ? y : __primal_value(y)
224+
end
223225

224226
"""
225227
EvalSol

0 commit comments

Comments
 (0)