From a0609646b014a17e1351e67440ee27a44662b76a Mon Sep 17 00:00:00 2001 From: Oliver Gloth Date: Thu, 21 Jun 2012 18:06:51 +0200 Subject: [PATCH] settings are now saved --- src/libengrid/guicreateboundarylayer.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/libengrid/guicreateboundarylayer.cpp b/src/libengrid/guicreateboundarylayer.cpp index 159facf..1a622f1 100644 --- a/src/libengrid/guicreateboundarylayer.cpp +++ b/src/libengrid/guicreateboundarylayer.cpp @@ -364,6 +364,22 @@ void GuiCreateBoundaryLayer::operate() smooth.setFarRatio(m_Ui.doubleSpinBoxFarRatio->value()); smooth.setNumHeightRelaxations(m_Ui.spinBoxHeightIterations->value()); smooth.setNumNormalRelaxations(m_Ui.spinBoxNormalIterations->value()); + + { + QString blayer_txt = ""; + QTextStream s(&blayer_txt); + s << Ha << " "; + s << Hr << " "; + s << bl << " "; + s << m_Ui.doubleSpinBoxStretching->value() << " "; + s << m_Ui.doubleSpinBoxFarRatio->value() << " "; + s << 0 << " "; + s << m_Ui.spinBoxHeightIterations->value() << " "; + s << m_Ui.spinBoxNormalIterations->value() << " "; + GuiMainWindow::pointer()->setXmlSection("blayer/global", blayer_txt); + } + + for (int j = 0; j < m_Ui.spinBoxIterations->value(); ++j) { cout << "improving prismatic layer -> iteration " << j+1 << "/" << m_Ui.spinBoxIterations->value() << endl; if (!m_Ui.checkBoxSafeMode->isChecked()) { -- 2.11.4.GIT