NREL / ssc

SAM Simulation Core (SSC) contains the underlying performance and financial models for SAM
BSD 3-Clause "New" or "Revised" License
78 stars 83 forks source link

Bug copying `vec` field of var_data #1157

Closed dguittet closed 2 months ago

dguittet commented 2 months ago

Describe the bug In the function copy for var_data, the vec field is appending entries from the rhs.vec instead of replacing. https://github.com/NREL/ssc/blob/217296f1a92d1a37ccf1600de994664ee216ffa2/ssc/vartab.h#L152

Expected behavior The old vec data should be cleared and the new one copied over.