From e8c94112e2ea0a497b5a05f31364ac828e1cd0e5 Mon Sep 17 00:00:00 2001 From: Gerald NICOLAS Date: Tue, 27 Dec 2016 10:27:59 +0100 Subject: [PATCH] =?utf8?q?Voisinages=20des=20volumes=20raccord=C3=A9s=20pa?= =?utf8?q?r=20non=20conformit=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- doc/en/divers.rst | 5 +- doc/fr/divers.rst | 4 +- src/HOMARDGUI/CreateHypothesis.ui | 70 ++++++++++++++++----------- src/HOMARDGUI/MonCreateHypothesis.cxx | 15 +++--- src/HOMARDGUI/MonEditHypothesis.cxx | 10 +++- 5 files changed, 66 insertions(+), 38 deletions(-) diff --git a/doc/en/divers.rst b/doc/en/divers.rst index 483d40a2..020e06a5 100644 --- a/doc/en/divers.rst +++ b/doc/en/divers.rst @@ -74,8 +74,11 @@ SALOME RELEASE 7.6 : SALOME RELEASE 8.1 : - Interface with med 3.2.0 - - New options withinthe choice conformal/non-conformal. + - New options within the choice conformal/non-conformal. - Less meshes are involved in the case of a non conformal refinement of a mesh made of hexahedra. - Correction of an error when refinement and unrefinement are coupled for a mesh made of hexahedra. +SALOME RELEASE 8.3 : + - Interface with med 3.2.1 + - Output of the list of the meshes that are connected with a non conformal link. diff --git a/doc/fr/divers.rst b/doc/fr/divers.rst index 0c932893..cd827a1b 100644 --- a/doc/fr/divers.rst +++ b/doc/fr/divers.rst @@ -78,5 +78,7 @@ SALOME VERSION 8.1 : - Diminution du nombre de mailles impactées dans le cas d’un raffinement non conforme d’un maillage en hexaèdres. - Correction d'une anomalie en raffinement / déraffinement d’un maillage en hexaèdres. - +SALOME VERSION 8.3 : + - Interfaçage avec med 3.2.1 + - Sortie des listes de mailles volumiques raccordées par non-conformité diff --git a/src/HOMARDGUI/CreateHypothesis.ui b/src/HOMARDGUI/CreateHypothesis.ui index d97cb575..00c65dc8 100644 --- a/src/HOMARDGUI/CreateHypothesis.ui +++ b/src/HOMARDGUI/CreateHypothesis.ui @@ -7,7 +7,7 @@ 0 0 848 - 1600 + 1650 @@ -46,7 +46,7 @@ 0 0 844 - 1596 + 1646 @@ -76,7 +76,7 @@ - + Qt::Horizontal @@ -89,7 +89,7 @@ - + Type of adaptation @@ -128,7 +128,7 @@ - + Qt::Horizontal @@ -148,7 +148,7 @@ - + Qt::Horizontal @@ -193,7 +193,7 @@ - + Qt::Horizontal @@ -206,7 +206,7 @@ - + @@ -238,7 +238,7 @@ - + @@ -690,7 +690,7 @@ - + @@ -878,7 +878,7 @@ - + Qt::Horizontal @@ -898,7 +898,7 @@ - + Qt::Horizontal @@ -911,7 +911,7 @@ - + Advanced options @@ -1017,10 +1017,24 @@ + + + + Output of the parents + + + + + + + Output of the neighbours + + + - + Qt::Horizontal @@ -1033,7 +1047,20 @@ - + + + + Qt::Horizontal + + + + 40 + 20 + + + + + @@ -1076,19 +1103,6 @@ - - - - Qt::Horizontal - - - - 40 - 20 - - - - diff --git a/src/HOMARDGUI/MonCreateHypothesis.cxx b/src/HOMARDGUI/MonCreateHypothesis.cxx index 77441cf7..c73c86f1 100644 --- a/src/HOMARDGUI/MonCreateHypothesis.cxx +++ b/src/HOMARDGUI/MonCreateHypothesis.cxx @@ -77,7 +77,8 @@ MonCreateHypothesis::MonCreateHypothesis(MonCreateIteration* parent, bool modal, CBOutputLevel->setChecked(false); CBOutputQuality->setChecked(false); CBOutputDiameter->setChecked(false); -// CBOutputParent->setChecked(false); + CBOutputParent->setChecked(false); + CBOutputVoisins->setChecked(false); _ExtraOutput = 1 ; // adjustSize(); @@ -197,10 +198,11 @@ bool MonCreateHypothesis::PushOnApply() aHypothesis->SetAdapInit(_AdapInit); // Sortie optionnelle des niveaux de raffinement, des diametres, des qualites _ExtraOutput = 1 ; - if (CBOutputLevel->isChecked()) { _ExtraOutput = 2 ; } - if (CBOutputQuality->isChecked()) { _ExtraOutput = 3*_ExtraOutput ; } - if (CBOutputDiameter->isChecked()) { _ExtraOutput = 5*_ExtraOutput ; } -// if (CBOutputParent->isChecked()) { _ExtraOutput = 7*_ExtraOutput ; } + if (CBOutputLevel->isChecked()) { _ExtraOutput = 2 ; } + if (CBOutputQuality->isChecked()) { _ExtraOutput = 3*_ExtraOutput ; } + if (CBOutputDiameter->isChecked()) { _ExtraOutput = 5*_ExtraOutput ; } + if (CBOutputParent->isChecked()) { _ExtraOutput = 7*_ExtraOutput ; } + if (CBOutputVoisins->isChecked()) { _ExtraOutput = 11*_ExtraOutput ; } aHypothesis->SetExtraOutput(_ExtraOutput); } @@ -913,7 +915,8 @@ void MonCreateHypothesis::SetAdvanced() CBOutputLevel->setChecked(false); CBOutputQuality->setChecked(false); CBOutputDiameter->setChecked(false); -// CBOutputParent->setChecked(false); + CBOutputParent->setChecked(false); + CBOutputVoisins->setChecked(false); _ExtraOutput = 1 ; } // diff --git a/src/HOMARDGUI/MonEditHypothesis.cxx b/src/HOMARDGUI/MonEditHypothesis.cxx index 3853b63f..7522ea66 100644 --- a/src/HOMARDGUI/MonEditHypothesis.cxx +++ b/src/HOMARDGUI/MonEditHypothesis.cxx @@ -149,12 +149,18 @@ void MonEditHypothesis::InitValEdit() CBOutputDiameter->setEnabled(false); } else { CBOutputDiameter->setVisible(0) ; } -/* if ( ExtraOutput % 7 == 0 ) + if ( ExtraOutput % 7 == 0 ) { CBOutputParent->setChecked(true); CBOutputParent->setEnabled(false); } - else { CBOutputParent->setVisible(0) ; }*/ + else { CBOutputParent->setVisible(0) ; } + if ( ExtraOutput % 11 == 0 ) + { + CBOutputVoisins->setChecked(true); + CBOutputVoisins->setEnabled(false); + } + else { CBOutputVoisins->setVisible(0) ; } } else { GBAdvancedOptions->setVisible(0); } -- 2.39.2