Skip to content

Commit

Permalink
Update GhpGhx.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
atpham88 committed Feb 21, 2024
1 parent 99c58c4 commit d4bb970
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/GhpGhx.jl
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,18 @@ function size_borefield(p)
XIN[2] = Mdot_GHX
XIN[3] = p.AmbientTemperature[hr]
XIN[4] = p.AmbientTemperature[hr]
if Sys.islinux() || Sys.isapple()
if Sys.islinux()
ccall((:type1373_, normpath(joinpath(@__DIR__,"../ghxmodel/tess_linux.so"))), Cvoid,
(Ptr{Float64}, Ptr{Float64}, Ptr{Float64}, Ptr{Float64}, Ptr{Int64}, Ptr{Int64}),
TimeArray, XIN, OUT, PAR, INFO, ErrorFound)
elseif Sys.iswindows()
ccall((:type1373_, normpath(joinpath(@__DIR__,"../ghxmodel/tess_windows.so"))), Cvoid,
(Ptr{Float64}, Ptr{Float64}, Ptr{Float64}, Ptr{Float64}, Ptr{Int64}, Ptr{Int64}),
TimeArray, XIN, OUT, PAR, INFO, ErrorFound)
elseif Sys.isapple()
ccall((:type1373_, normpath(joinpath(@__DIR__,"../ghxmodel/tess_mac.so"))), Cvoid,
(Ptr{Float64}, Ptr{Float64}, Ptr{Float64}, Ptr{Float64}, Ptr{Int64}, Ptr{Int64}),
TimeArray, XIN, OUT, PAR, INFO, ErrorFound)
end
end

Expand Down

0 comments on commit d4bb970

Please sign in to comment.