From e56bd20c24e75b5bf228549dd25974180e0a2883 Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 19 Aug 2022 11:58:37 +0300 Subject: [PATCH] [bos #30879] EDF 25906 - typo in doc. Verbosity should be 0 to 10 and not 0 to 100. --- idl/BLSURFPlugin_Algorithm.idl | 2 +- src/BLSURFPlugin/BLSURFPluginBuilder.py | 2 +- src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 << " )"; -- 2.39.2