-
Notifications
You must be signed in to change notification settings - Fork 13
Generalise linear solvers #648
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
base: main
Are you sure you want to change the base?
Conversation
…set to 0 with a flag
| if self.enforce_pc_on_rhs: | ||
| self.dy.assign(Constant(0.0)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you always want to do this for a linear solve. Are there cases when you've found you need enforce_pc_on_rhs=True to match previous results?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes - in which case I can just force it to be 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I meant is there anywhere you need enforce_pc_on_rhs=False!
…ssible boussinesq, ThermalSW equiv b, moist convective SW, double check compressible Euler reproducibility, edit TR-BDF2
JHopeCollins
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you add the pc.getOptionsPrefix() to the compressible pc subsolvers then you can pass options at the expected level in the options dictionary.
Co-authored-by: Josh Hope-Collins <[email protected]>
Co-authored-by: Josh Hope-Collins <[email protected]>
Co-authored-by: Josh Hope-Collins <[email protected]>
Co-authored-by: Josh Hope-Collins <[email protected]>
Co-authored-by: Josh Hope-Collins <[email protected]>
|
|
||
| __all__ = ["HybridisedSolverParameters"] | ||
|
|
||
| def HybridisedSolverParameters(equation, alpha=0.5, tau_values=None, nonlinear=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing as all the defaults use some form of hybridisation, it could be useful to have a hybridisation_params optional argument so that people can change the solver options for the trace system (either "hybridization_" or "condensed_field_") when they use this function.
Co-authored-by: Josh Hope-Collins <[email protected]>
No description provided.