From b28d963fc6f892dac608a7f1e8180277f9b80919 Mon Sep 17 00:00:00 2001
From: Brian Groenke <brian.groenke@awi.de>
Date: Tue, 10 Dec 2024 15:09:23 +0100
Subject: [PATCH] Fix incorrect var ref in heat/water impl

---
 src/Physics/Heat/heat_water.jl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Physics/Heat/heat_water.jl b/src/Physics/Heat/heat_water.jl
index abdc2cfc..73f9c4d8 100644
--- a/src/Physics/Heat/heat_water.jl
+++ b/src/Physics/Heat/heat_water.jl
@@ -23,7 +23,7 @@ function water_energy_advection!(jH, jw, T, cw::Real, L::Real)
             T₁ = T[i-1],
             Tâ‚‚ = T[i];
             jH_w = advectiveflux(jw, T₁, T₂, cw, L)
-            state.jH[i] += jH_w
+            jH[i] += jH_w
         end
     end
 end
-- 
GitLab