Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correction of undefined function #120

Merged
merged 2 commits into from
Sep 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/convenience.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function mumps_solve!(x::AbstractArray, A::AbstractArray, rhs::AbstractArray; kw
end

function mumps_solve!(x::AbstractArray, mumps::Mumps, rhs::AbstractArray)
provide_rhs!(mumps, rhs)
associate_rhs!(mumps, rhs)
if mumps.job ∈ [2, 4] # if already factored, just solve
elseif mumps.job ∈ [1] # if analyzed only, factorize and solve
mumps.job = 5
Expand Down Expand Up @@ -230,7 +230,7 @@ function mumps_select_inv! end
function mumps_select_inv!(x::AbstractSparseArray, mumps::Mumps)
set_icntl!(mumps, 30, 1)
set_icntl!(mumps, 20, 3)
provide_rhs!(mumps, x)
associate_rhs!(mumps, x)
if mumps.job ∈ [2, 4] # if already factored, just solve
mumps.job = 3
elseif mumps.job ∈ [1] # if analyzed only, factorize and solve
Expand Down Expand Up @@ -323,7 +323,7 @@ function LinearAlgebra.ldiv!(mumps::Mumps, y)
else
mumps.job = 2
end
provide_rhs!(mumps, y)
associate_rhs!(mumps, y)
mumps_solve!(y, mumps)
end

Expand Down