]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
Disable minimum gradation limitation since MG-Tetra manages to deal with values ... V7_8_0a2 V7_8_0b1
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Fri, 22 Apr 2016 08:41:12 +0000 (10:41 +0200)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Fri, 22 Apr 2016 08:41:12 +0000 (10:41 +0200)
src/GHS3DPlugin/GHS3DPlugin_Hypothesis_i.cxx
src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx

index c66427e55b1b91bf788674f61927088c0440d29b..8ea23914a72beaa45b20ee5e60daa71dfe083c29 100644 (file)
@@ -380,8 +380,6 @@ char* GHS3DPlugin_Hypothesis_i::GetTextOption()
 
 void GHS3DPlugin_Hypothesis_i::SetGradation(CORBA::Double gradation)
 {
-  if (gradation <= 1)
-    THROW_SALOME_CORBA_EXCEPTION( "The volumic gradation must be > 1",SALOME::BAD_PARAM );
   ASSERT(myBaseImpl);
   if (gradation != GetGradation()) {
     this->GetImpl()->SetGradation(gradation);
index 518980091a45e0586162b11da3ec8278c7ab5517..2db3a1b235443f4eb4ff9017cce083f3236b3b81 100644 (file)
@@ -441,7 +441,7 @@ QFrame* GHS3DPluginGUI_HypothesisCreator::buildFrame()
   myAdvWidget->boundaryRecoveryCheck         ->setText (tr( "RECOVERY_VERSION" ));
   myAdvWidget->FEMCorrectionCheck            ->setText (tr( "FEM_CORRECTION" ));
   myAdvWidget->gradationLabel                ->setText (tr( "GHS3D_GRADATION" ));
-  myAdvWidget->gradationSpinBox->RangeStepAndValidator(1.05, 5.0, 0.05, "length_precision");
+  myAdvWidget->gradationSpinBox->RangeStepAndValidator(0.0, 5.0, 0.05, "length_precision");
   myAdvWidget->textOptionLabel->setText(tr( "TEXT_OPTION" ));
 
   // Enforced vertices parameters