Skip to content

Commit

Permalink
ticket:5132 Don't enable the evaluation of parameters by default
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - #143
  • Loading branch information
adeas31 authored and OpenModelica-Hudson committed Apr 15, 2019
1 parent 646bc9b commit f1f591f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 36 deletions.
2 changes: 1 addition & 1 deletion OMEdit/OMEdit/OMEditGUI/Simulation/SimulationOptions.h
Expand Up @@ -73,7 +73,7 @@ class SimulationOptions
setMatchingAlgorithm("PFPlusExt");
setIndexReductionMethod("dynamicStateSelection");
setInitialization(true);
setEvaluateAllParameters(true);
setEvaluateAllParameters(false);
setNLSanalyticJacobian(true);
setPedantic(false);
setParmodauto(false);
Expand Down
36 changes: 1 addition & 35 deletions OMEdit/OMEdit/OMEditGUI/Simulation/TranslationFlagsWidget.cpp
Expand Up @@ -73,7 +73,7 @@ TranslationFlagsWidget::TranslationFlagsWidget(QWidget *pParent)
}
connect(mpIndexReductionMethodComboBox, SIGNAL(currentIndexChanged(int)), SLOT(updateIndexReductionToolTip(int)));
mpInitializationCheckBox = new QCheckBox(tr("Show additional information from the initialization process"));
mpEvaluateAllParametersCheckBox = new QCheckBox(tr("Evaluate all parameters at compile time"));
mpEvaluateAllParametersCheckBox = new QCheckBox(tr("Evaluate all parameters (faster simulation, cannot change them at runtime)"));
mpNLSanalyticJacobianCheckBox = new QCheckBox(tr("Enable analytical jacobian for non-linear strong components"));
mpPedanticCheckBox = new QCheckBox(tr("Enable pedantic debug-mode, to get much more feedback"));
mpParmodautoCheckBox = new QCheckBox(tr("Enable parallelization of independent systems of equations (Experimental)"));
Expand Down Expand Up @@ -160,40 +160,6 @@ void TranslationFlagsWidget::createSimulationOptions(SimulationOptions *pSimulat
*/
bool TranslationFlagsWidget::applyFlags()
{
// set matching algorithm
// MainWindow::instance()->getOMCProxy()->setMatchingAlgorithm(mpMatchingAlgorithmComboBox->currentText());
// // set index reduction
// MainWindow::instance()->getOMCProxy()->setIndexReductionMethod(mpIndexReductionMethodComboBox->currentText());
// // set initialization
// if (mpInitializationCheckBox->isChecked()) {
// MainWindow::instance()->getOMCProxy()->setCommandLineOptions("-d=initialization");
// }
// // set evaluate all parameters
// if (mpEvaluateAllParametersCheckBox->isChecked()) {
// MainWindow::instance()->getOMCProxy()->setCommandLineOptions("-d=evaluateAllParameters");
// }
// // set NLS analytic jacobian
// if (mpNLSanalyticJacobianCheckBox->isChecked()) {
// MainWindow::instance()->getOMCProxy()->setCommandLineOptions("-d=NLSanalyticJacobian");
// }
// // set pedantic mode
// if (mpPedanticCheckBox->isChecked()) {
// MainWindow::instance()->getOMCProxy()->setCommandLineOptions("-d=pedantic");
// }
// // set parmodauto
// if (mpParmodautoCheckBox->isChecked()) {
// MainWindow::instance()->getOMCProxy()->setCommandLineOptions("-d=parmodauto");
// }
// // set new instantiation
// if (mpNewInstantiationCheckBox->isChecked()) {
// MainWindow::instance()->getOMCProxy()->setCommandLineOptions("-d=newInst");
// }
// // set command line options set manually by user. This can override above options.
// if (!MainWindow::instance()->getOMCProxy()->setCommandLineOptions(mpAdditionalTranslationFlagsTextBox->text())) {
// return false;
// }
// return true;

if (!MainWindow::instance()->getOMCProxy()->setCommandLineOptions(commandLineOptions())) {
return false;
}
Expand Down

0 comments on commit f1f591f

Please sign in to comment.