From e761498d7a24071bf9c4cd938411582546f9b4f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20K=C3=B6hler?= <27728103+Ceyron@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:46:19 +0200 Subject: [PATCH] Ensure single-channel convection nonlin is conservative (#53) --- exponax/nonlin_fun/_general_nonlinear.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exponax/nonlin_fun/_general_nonlinear.py b/exponax/nonlin_fun/_general_nonlinear.py index 8b09cb9..8104dc1 100644 --- a/exponax/nonlin_fun/_general_nonlinear.py +++ b/exponax/nonlin_fun/_general_nonlinear.py @@ -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,