Skip to content

Add UpwindBiasedGradient operator - #2345

Merged
dennisYatunin merged 1 commit into
mainfrom
dy/upwind_gradient
Jul 9, 2025
Merged

Add UpwindBiasedGradient operator#2345
dennisYatunin merged 1 commit into
mainfrom
dy/upwind_gradient

Conversation

@dennisYatunin

Copy link
Copy Markdown
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.

Comment thread test/Operators/finitedifference/convergence_column.jl Outdated
Comment thread test/Operators/finitedifference/convergence_column.jl Outdated
@dennisYatunin

Copy link
Copy Markdown
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