Skip to content

Conversation

@JHopeCollins
Copy link
Member

No description provided.

@tommbendall tommbendall added enhancement Involves adding a new capability design discussion Issues relating to some code design. May be better as a discussion tidying Involves tidying up code and removed design discussion Issues relating to some code design. May be better as a discussion labels Aug 8, 2025
Comment on lines 983 to 984
if self.enforce_pc_on_rhs:
self.dy.assign(Constant(0.0))
Copy link
Member Author

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?

Copy link
Collaborator

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

Copy link
Member Author

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
Copy link
Member Author

@JHopeCollins JHopeCollins left a 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.


__all__ = ["HybridisedSolverParameters"]

def HybridisedSolverParameters(equation, alpha=0.5, tau_values=None, nonlinear=False):
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Involves adding a new capability tidying Involves tidying up code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants