sim - Remember the option to save powers

Fixes #13978


(cherry picked from commit 2a3b70b7eb)
This commit is contained in:
Fabien Corona 2023-02-20 19:12:58 +01:00
parent 17241b3543
commit 74dcc1b9d5
3 changed files with 10 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
};

View File

@ -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;
}