Skip to content

Commit a13d97b

Browse files
Fix return value to return sol from solve!(cache)
Changed to capture and return the solution object from solve!(cache) instead of returning the cache itself. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9b88954 commit a13d97b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

test/trim/linear_lu.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function solve_linear(x)
1616
# Create a new problem with a modified b vector
1717
b_new = [x, 2.0 * x]
1818
reinit!(cache; b = b_new)
19-
solve!(cache)
20-
return cache
19+
sol = solve!(cache)
20+
return sol
2121
end
2222
end

test/trim/linear_mkl.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function solve_linear(x)
1616
# Create a new problem with a modified b vector
1717
b_new = [x, 2.0 * x]
1818
reinit!(cache; b = b_new)
19-
solve!(cache)
20-
return cache
19+
sol = solve!(cache)
20+
return sol
2121
end
2222
end

test/trim/linear_rf.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function solve_linear(x)
1717
# Create a new problem with a modified b vector
1818
b_new = [x, 2.0 * x]
1919
reinit!(cache; b = b_new)
20-
solve!(cache)
21-
return cache
20+
sol = solve!(cache)
21+
return sol
2222
end
2323
end

0 commit comments

Comments
 (0)