Skip to content

Commit

Permalink
typo in gibbs_free_energy_res
Browse files Browse the repository at this point in the history
  • Loading branch information
longemen3000 committed Oct 25, 2024
1 parent 523ed4f commit d3378cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/methods/VT.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ end
function VT_gibbs_free_energy_res(model::EoSModel, V, T, z=SA[1.])
fun(x) = eos_res(model,x,T,z)
Ar,∂A∂Vr = Solvers.f∂f(fun,V)
PrV = ifelse(V == Inf,zero(∂A∂V),- V*∂A∂V)
PrV = ifelse(V == Inf,zero(∂A∂Vr),- V*∂A∂Vr)
return Ar + PrV
end

Expand Down

0 comments on commit d3378cd

Please sign in to comment.