Skip to content

Commit

Permalink
Fixes bug in Latent_HeatCapacity (#171)
Browse files Browse the repository at this point in the history
* `precision` not defined for LatentTeat. Use type signature instead

* oops...
  • Loading branch information
albert-de-montserrat authored Feb 8, 2024
1 parent fb63cc7 commit 05fcc3f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Energy/HeatCapacity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ end

# Calculation routine
@inline function compute_heatcapacity(
a::T_HeatCapacity_Whittington{_T};
T = zero(precision(a)),
a::T_HeatCapacity_Whittington{_T};
T = zero(_T),
kwargs...
) where _T
) where _T
@unpack_val a0, a1, b0, b1, c0, c1, molmass, Tcutoff = a

cp = a0 / molmass
Expand Down Expand Up @@ -144,10 +144,10 @@ end

# Calculation routine
@inline function compute_heatcapacity(
a::Latent_HeatCapacity;
dϕdT = zero(precision(a)),
a::Latent_HeatCapacity{_T};
dϕdT = zero(_T),
kwargs...
)
) where _T
@unpack_val Q_L = a

Cp = compute_heatcapacity(a.Cp, kwargs)
Expand Down

0 comments on commit 05fcc3f

Please sign in to comment.