From cc5d1f1878b443eb883681a2de60b1be4b554d34 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:36:29 +0200 Subject: [PATCH] Ensure single-channel convection nonlin is conservative --- 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,