Skip to content
Snippets Groups Projects
Commit 85f034d3 authored by Brian Groenke's avatar Brian Groenke
Browse files

Revert "Minor adjustment to advective heat flux"

This reverts commit 32782e38.
parent 32782e38
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment