Commit fa85c106 authored by Gerrit Erichsen's avatar Gerrit Erichsen
Browse files

Added missing copy element in copy constructor (maybe remove explicit implementation?)

parent 9f561c90
......@@ -119,6 +119,7 @@ Storage::Storage(string name, double nominalPower, double nominalPowerDischarge,
Storage::Storage(const Storage & rhs) :
m_name(rhs.m_name),
m_nominalPowerCharge(rhs.m_nominalPowerCharge),
m_nominalPowerDischarge(rhs.m_nominalPowerDischarge),
m_gradientCharge(rhs.m_gradientCharge),
m_gradientDischarge(rhs.m_gradientDischarge),
m_storageCapacity(rhs.m_storageCapacity),
......@@ -188,11 +189,11 @@ Storage::Storage(const Storage & rhs) :
m_forecastLevel(rhs.m_forecastLevel),
m_dischargeEmissionStartup(rhs.m_dischargeEmissionStartup), //tc - output
m_dischargeCostStartup(rhs.m_dischargeCostStartup), //tc - output
m_isLongTermStorage(rhs.m_isLongTermStorage),
m_lifeTimeCharge(rhs.m_lifeTimeCharge), // bw: added from GUI
m_lifeTimeDischarge(rhs.m_lifeTimeDischarge), // bw: added from GUI
m_typicalUnitSizeCharge(rhs.m_typicalUnitSizeCharge), // bw: added from GUI
m_typicalUnitSizeDischarge(rhs.m_typicalUnitSizeDischarge), // bw: added from GUI
m_isLongTermStorage(rhs.m_isLongTermStorage),
m_preferences(rhs.m_preferences)
{
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment