From 85f034d36cdff067ff35cb3c97b28fbb23324c61 Mon Sep 17 00:00:00 2001 From: Brian Groenke <brian.groenke@awi.de> Date: Mon, 18 Nov 2024 13:46:05 +0100 Subject: [PATCH] Revert "Minor adjustment to advective heat flux" This reverts commit 32782e38ef9cf6d770672d1e316a85c992a76c97. --- 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 a187f4f9..5c513182 100644 --- a/src/Physics/Heat/heat_water.jl +++ b/src/Physics/Heat/heat_water.jl @@ -10,7 +10,7 @@ WaterHeatBC(waterbc::WaterBC, heatbc::HeatBC) = Coupled(waterbc, heatbc) Computes the advective energy flux between grid cells with temperatures `Tâ‚` and `Tâ‚‚` given the heat capacity of water `cw` and latent heat of fusion `L`. """ -advectiveflux(jw, Tâ‚, Tâ‚‚, cw, L) = jw*(cw*(Tâ‚-Tâ‚‚) + L) +advectiveflux(jw, Tâ‚, Tâ‚‚, cw, L) = jw*(cw*Tâ‚*(jw > zero(jw)) + cw*Tâ‚‚*(jw < zero(jw)) + L) """ water_energy_advection!(::SubSurface, ::Coupled(WaterBalance, HeatBalance), state) -- GitLab