Skip to content

Commit

Permalink
Update to master version
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Sep 24, 2023
1 parent e7b06dc commit a72bae6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/CoolProp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,7 @@ julia> AbstractState_free(handle);
```
"""
function AbstractState_get_mole_fractions(handle::Clong, fractions::Array{Float64})
buffer_length = length(message_buffer)
ccall( (:AbstractState_get_mole_fractions, libcoolprop), Nothing, (Clong, Ptr{Cdouble}, Clong, Ref{Clong}, Ref{Clong}, Ptr{UInt8}, Clong), handle, fractions, maxN, length(fractions), errcode, message_buffer::Array{UInt8, 1}, buffer_length)
raise(errcode, message_buffer)
return nothing
Expand Down Expand Up @@ -882,6 +883,7 @@ julia> AbstractState_free(handle);
"""
function AbstractState_get_mole_fractions_satState(handle::Clong, saturated_state::AbstractString,
fractions::Array{Float64})
buffer_length = length(message_buffer)
ccall( (:AbstractState_get_mole_fractions_satState, libcoolprop), Nothing, (Clong, Cstring, Ptr{Cdouble}, Clong, Ref{Clong}, Ref{Clong}, Ptr{UInt8}, Clong), handle, saturated_state, fractions, maxN, length(fractions), errcode, message_buffer::Array{UInt8, 1}, buffer_length)
raise(errcode, message_buffer)
return nothing
Expand Down
2 changes: 1 addition & 1 deletion test/testConstants.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
tpropwithnumval = Set();
@info "Finding trivials with numerical value"
for p in coolproptrivialparameters
missed = Set();
local missed = Set();
for fluid in coolpropfluids
try
res = ("$(PropsSI(p, String(fluid)))");
Expand Down

0 comments on commit a72bae6

Please sign in to comment.