Skip to content

Commit

Permalink
Ensure single-channel convection nonlin is conservative
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceyron committed Oct 22, 2024
1 parent ad869e4 commit cc5d1f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exponax/nonlin_fun/_general_nonlinear.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def __init__(
# Minus required because it internally has another minus
scale=-scale_list[1],
single_channel=True,
# For legacy reasons, the single-channel convection term is conservative
conservative=True,
)
self.gradient_norm_nonlinear_fun = GradientNormNonlinearFun(
num_spatial_dims,
Expand Down

0 comments on commit cc5d1f1

Please sign in to comment.