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

Left ILU support #6

Merged
merged 2 commits into from
Apr 29, 2024
Merged

Left ILU support #6

merged 2 commits into from
Apr 29, 2024

Conversation

michel2323
Copy link
Collaborator

  • I have to use transpose! for the factors for the ILU, as there's no constructor for adjoint or lazy transpose in IncompleteLU.jl.

@michel2323 michel2323 requested a review from amontoison April 26, 2024 14:58
L = copy(M.L)
transpose!(U, M.L)
transpose!(L, M.U)
N = IncompleteLU.ILUFactorization(L, U)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You already permuted M and N. I think that it should be M.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

_b.dval .= Krylov.$solver(transpose(A), bx[]; M=M, N=N, verbose=verbose, options...)[1]
N = M
M = N
if isa(M, IncompleteLU.ILUFactorization)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to do the same thing if N is an ILUFactorization (right preconditioner).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do this in another PR.

@michel2323 michel2323 changed the title Deal with ILU Left ILU support Apr 29, 2024
@michel2323 michel2323 merged commit fc34100 into main Apr 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants