Skip to content

Add UpwindBiasedGradient operator #2345

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

Merged
merged 1 commit into from
Jul 9, 2025
Merged

Add UpwindBiasedGradient operator #2345

merged 1 commit into from
Jul 9, 2025

Conversation

dennisYatunin
Copy link
Member

This PR adds an UpwindBiasedGradient operator that can be used in CliMA/ClimaAtmos.jl#3843 (see Tapio's comment). This operator computes a first-order gradient with either left biasing or right biasing, depending on the direction of an associated velocity field. A convergence and correctness test has also been added.

  • Code follows the style guidelines OR N/A.
  • Unit tests are included OR N/A.
  • Code is exercised in an integration test OR N/A.
  • Documentation has been added/updated OR N/A.

@dennisYatunin
Copy link
Member Author

This operator has been integration tested in CliMA/ClimaAtmos.jl#3843, with the latest successful CI run from 07/02/25 available here. The unit tests in this PR are also showing the expected convergence rates.

@dennisYatunin dennisYatunin enabled auto-merge July 8, 2025 23:31
@dennisYatunin dennisYatunin merged commit 122ee93 into main Jul 9, 2025
34 checks passed
@dennisYatunin dennisYatunin deleted the dy/upwind_gradient branch July 9, 2025 00:43
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