Skip to content

Commit 9b88954

Browse files
Fix reinit! to use keyword argument for b
Changed reinit!(cache, b_new) to reinit!(cache; b = b_new) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent f392a25 commit 9b88954

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/trim/linear_lu.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const cache = init(prob, alg)
1515
function solve_linear(x)
1616
# Create a new problem with a modified b vector
1717
b_new = [x, 2.0 * x]
18-
reinit!(cache, b_new)
18+
reinit!(cache; b = b_new)
1919
solve!(cache)
2020
return cache
2121
end

test/trim/linear_mkl.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const cache = init(prob, alg)
1515
function solve_linear(x)
1616
# Create a new problem with a modified b vector
1717
b_new = [x, 2.0 * x]
18-
reinit!(cache, b_new)
18+
reinit!(cache; b = b_new)
1919
solve!(cache)
2020
return cache
2121
end

test/trim/linear_rf.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const cache = init(prob, alg)
1616
function solve_linear(x)
1717
# Create a new problem with a modified b vector
1818
b_new = [x, 2.0 * x]
19-
reinit!(cache, b_new)
19+
reinit!(cache; b = b_new)
2020
solve!(cache)
2121
return cache
2222
end

0 commit comments

Comments
 (0)