Skip to content

Conversation

trontrytel
Copy link
Member

Triangle limiter flips the sign of the tendency if we are limiting by negative numbers. The tendency in that case becomes unbounded. It is possible in our simulations to have spurious negative tracers.

This PR changes the triangle limiter behavior. If limiting by negative number the source and destination categories are swapped. We try to limit this new force by the amount available in the old destination category. If both source and destination are negative, we return zero, as there is nothing the limiter can do.

If no second limiter is provided for negative tracer case, the tendency is set to zero. This is used for example when limiting the number concentration tendencies.

@trontrytel trontrytel self-assigned this Oct 1, 2025
@trontrytel
Copy link
Member Author

Testing in CI here and also with high resolution MBW

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant