From: jfa Date: Fri, 19 Aug 2022 08:58:37 +0000 (+0300) Subject: [bos #30879] EDF 25906 - typo in doc. Verbosity should be 0 to 10 and not 0 to 100. X-Git-Tag: V9_9_1b1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7a24e9f12d609edcb871f8bb0a6277793c951572;p=plugins%2Fblsurfplugin.git [bos #30879] EDF 25906 - typo in doc. Verbosity should be 0 to 10 and not 0 to 100. --- diff --git a/idl/BLSURFPlugin_Algorithm.idl b/idl/BLSURFPlugin_Algorithm.idl index 1044340..989262a 100644 --- a/idl/BLSURFPlugin_Algorithm.idl +++ b/idl/BLSURFPlugin_Algorithm.idl @@ -367,7 +367,7 @@ module BLSURFPlugin double GetVolumeProximityRatio(); /*! - * Set verbosity level in the range 0 to 100. + * Set verbosity level in the range 0 to 10. */ void SetVerbosity(in short theVal) raises (SALOME::SALOME_Exception); short GetVerbosity(); diff --git a/src/BLSURFPlugin/BLSURFPluginBuilder.py b/src/BLSURFPlugin/BLSURFPluginBuilder.py index 8820ee3..43ffe29 100644 --- a/src/BLSURFPlugin/BLSURFPluginBuilder.py +++ b/src/BLSURFPlugin/BLSURFPluginBuilder.py @@ -243,7 +243,7 @@ class BLSURF_Algorithm(Mesh_Algorithm): return - ## Sets verbosity level in the range 0 to 100. + ## Sets verbosity level in the range 0 to 10. # @param level verbosity level def SetVerbosity(self, level): self.Parameters().SetVerbosity(level) diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx index ba89ba1..a38fb1e 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx @@ -1045,7 +1045,7 @@ CORBA::Double BLSURFPlugin_Hypothesis_i::GetVolumeProximityRatio() //============================================================================= void BLSURFPlugin_Hypothesis_i::SetVerbosity(CORBA::Short theVal) { ASSERT(myBaseImpl); - if (theVal < 0 || theVal > 100) + if (theVal < 0 || theVal > 10) THROW_SALOME_CORBA_EXCEPTION( "Invalid verbosity level",SALOME::BAD_PARAM ); this->GetImpl()->SetVerbosity(theVal); SMESH::TPythonDump() << _this() << ".SetVerbosity( " << theVal << " )";