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

Custom BorderedLinearSolver interface requirements for PALC are missing #140

Open
Azercoco opened this issue Feb 22, 2024 · 5 comments
Open

Comments

@Azercoco
Copy link

When using a custom AbstractBorderedLinearSolver as the bls field in PALC( ...), the required interface methods as mentioned here are not sufficient. The custom bordered solver is also expected to implements something like this .

It also seems that this implementation is exactly the same for all sub types of AbstractBorderedLinearSolver. Maybe it would be better to just implements this method for the AbstractBorderedLinearSolver type directly instead of having duplicated code.

@Azercoco
Copy link
Author

Also in PALC, the solver is expected to have a field solver, which can be equal to nothing but has to be present nevertheless or the compilation will fail.

@rveltz
Copy link
Member

rveltz commented Feb 22, 2024

Hi

Thank you for reporting this.

Maybe it would be better to just implements this method for the AbstractBorderedLinearSolver type directly instead of having duplicated code.

I agree, thank you for the suggestion.

@rveltz
Copy link
Member

rveltz commented Feb 22, 2024

At some point, I need to find a better way for specifying the interfaces. As for PALC, I guess you are referring to the update method. I guess I can correct this by adding the requirement that an update method exists for AbstractBorderedLinearSolver.

Is this blocking you or you managed to find a way out?

@Azercoco
Copy link
Author

Azercoco commented Feb 22, 2024

Yes, that was the issue, the work around I found was just to add an solver field with a nothing value. No the cleanest but it did work.

@rveltz
Copy link
Member

rveltz commented Jun 2, 2024

You are right for the required field solver.

When using a custom AbstractBorderedLinearSolver as the bls field in PALC( ...), the required interface methods as mentioned here are not sufficient. The custom bordered solver is also expected to implements something like this .

This I am not sure. It is a fallback that will use the custom bordered linear solver, no need to add this.

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

No branches or pull requests

2 participants