sim - Remember the option to save powers
Fixes #13978
(cherry picked from commit 2a3b70b7eb
)
This commit is contained in:
parent
17241b3543
commit
74dcc1b9d5
|
@ -71,6 +71,9 @@ public:
|
|||
if( !m_saveAllCurrents->GetValue() )
|
||||
options &= ~NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_CURRENTS;
|
||||
|
||||
if( !m_saveAllDissipations->GetValue() )
|
||||
options &= ~NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_DISSIPATIONS;
|
||||
|
||||
return options;
|
||||
}
|
||||
|
||||
|
|
|
@ -75,12 +75,16 @@ public:
|
|||
if( m_SaveVoltages )
|
||||
options |= NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_VOLTAGES;
|
||||
|
||||
if( m_SavesDissipations )
|
||||
options |= NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_DISSIPATIONS;
|
||||
|
||||
return options;
|
||||
}
|
||||
|
||||
public:
|
||||
bool m_SaveVoltages = true;
|
||||
bool m_SaveCurrents = true;
|
||||
bool m_SavesDissipations = false;
|
||||
bool m_SaveVoltages = true;
|
||||
bool m_SaveCurrents = true;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -271,6 +271,7 @@ public:
|
|||
{
|
||||
return NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_VOLTAGES
|
||||
| NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_CURRENTS
|
||||
| NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_DISSIPATIONS
|
||||
| NETLIST_EXPORTER_SPICE::OPTION_ADJUST_INCLUDE_PATHS
|
||||
| NETLIST_EXPORTER_SPICE::OPTION_SIM_COMMAND;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue