Skip to content

Commit

Permalink
Ensure single-channel convection nonlin is conservative (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceyron authored Oct 22, 2024
1 parent ac70930 commit e761498
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 e761498

Please sign in to comment.