Skip to content

Unify stong/weak forms with type parameter dispatch#2556

Open
tapios wants to merge 1 commit into
mainfrom
ts/strong-weak
Open

Unify stong/weak forms with type parameter dispatch#2556
tapios wants to merge 1 commit into
mainfrom
ts/strong-weak

Conversation

@tapios

@tapios tapios commented Jul 26, 2026

Copy link
Copy Markdown
Member

Divergence, Gradient, and Curl now take a second type parameter (StrongForm/WeakForm) that factors out the three form-dependent differences (transposed-and-negated derivative matrix, W-weighted input, J vs WJ rescale). The twelve strong/weak apply_operator methods reduce to six; WeakDivergence, WeakGradient, and WeakCurl become backwards-compatibility aliases collected in src/Operators/deprecated.jl for later removal.

  • Results are bitwise identical to the previous implementations
  • All public names and constructors unchanged; CUDA extension untouched

@tapios tapios mentioned this pull request Jul 26, 2026
37 tasks
@tapios
tapios marked this pull request as ready for review July 26, 2026 21:51
@tapios
tapios requested a review from dennisYatunin July 26, 2026 21:52
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.

1 participant