From a72bae6be979707c9a169ccd81347bf4415c71d2 Mon Sep 17 00:00:00 2001 From: Bart Janssens Date: Sun, 24 Sep 2023 21:18:43 +0200 Subject: [PATCH] Update to master version --- src/CoolProp.jl | 2 ++ test/testConstants.jl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CoolProp.jl b/src/CoolProp.jl index 9e40e64..db630b2 100644 --- a/src/CoolProp.jl +++ b/src/CoolProp.jl @@ -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 @@ -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 diff --git a/test/testConstants.jl b/test/testConstants.jl index 19cdfa8..2ead03a 100644 --- a/test/testConstants.jl +++ b/test/testConstants.jl @@ -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)))");