Salome HOME
PR: Patch G. Nicolas 20111102
[modules/homard.git] / src / HOMARD / HOMARD_Hypothesis.cxx
index ea9a10c69d947c245def945ab852b62496dd3831..a272e97aa99b4ac9fe3d38d035d523c300e12be2 100644 (file)
@@ -139,6 +139,13 @@ std::string HOMARD_Hypothesis::GetDumpPython() const
       it_champ++;
     }
   }
+  if ( _NivMax > 0 )
+  {
+    aScript << "\t" <<_NomHypo << ".SetNivMax(";
+    aScript << _NivMax << ")\n";
+    aScript << "\t" <<_NomHypo << ".SetDiamMin(";
+    aScript << _DiamMin << ")\n";
+  }
 
   return aScript.str();
 }
@@ -390,4 +397,31 @@ const std::list<std::string>& HOMARD_Hypothesis::GetListFieldInterp() const
 {
   return _ListFieldInterp;
 }
-
+//=============================================================================
+void HOMARD_Hypothesis::SetNivMax( int NivMax )
+//=============================================================================
+{
+  _NivMax = NivMax;
+}
+//=============================================================================
+const int HOMARD_Hypothesis::GetNivMax() const
+//=============================================================================
+{
+  return _NivMax;
+}
+//=============================================================================
+void HOMARD_Hypothesis::SetDiamMin( double DiamMin )
+//=============================================================================
+{
+  _DiamMin = DiamMin;
+  if ( _NivMax < 0 )
+  {
+    _NivMax = 99 ;
+  }
+}
+//=============================================================================
+const double HOMARD_Hypothesis::GetDiamMin() const
+//=============================================================================
+{
+  return _DiamMin;
+}