Skip to content

Commit

Permalink
Update cst_ssc.jl
Browse files Browse the repository at this point in the history
added a return to line 230 to break function before unsafe_load
  • Loading branch information
jgifford914 authored Dec 2, 2024
1 parent 8a7c533 commit a5d6173
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/cst_ssc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ function run_ssc(case_data::Dict)
# electrical_consumption_response = @ccall hdl.ssc_data_get_array(data::Ptr{Cvoid}, outputs[2]::Cstring, len_ref::Ptr{Cvoid})::Ptr{Float64}
thermal_production = []
# elec_consumption = []
return
for i in 1:8760
push!(thermal_production,unsafe_load(thermal_production_response,i)) # For array type outputs
# push!(thermal_production,1.0) #for pass through
Expand Down

0 comments on commit a5d6173

Please sign in to comment.