From: vsr Date: Mon, 6 May 2019 11:10:42 +0000 (+0300) Subject: Merge branch 'V9_3_BR' X-Git-Tag: V9_4_0a1~38 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=ecea056f6165eddf99403a8648657a9a573bcbe0;hp=31fce7937dd5d934ec890da3d5031cbcec3040c0 Merge branch 'V9_3_BR' --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 13f7a4532..95d1ef7e2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,8 +33,8 @@ ENDIF(WIN32) STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC) SET(${PROJECT_NAME_UC}_MAJOR_VERSION 9) -SET(${PROJECT_NAME_UC}_MINOR_VERSION 2) -SET(${PROJECT_NAME_UC}_PATCH_VERSION 2) +SET(${PROJECT_NAME_UC}_MINOR_VERSION 3) +SET(${PROJECT_NAME_UC}_PATCH_VERSION 0) SET(${PROJECT_NAME_UC}_VERSION ${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION}) SET(${PROJECT_NAME_UC}_VERSION_DEV 1) diff --git a/src/MEDWrapper/MED_Factory.cxx b/src/MEDWrapper/MED_Factory.cxx index 12c0f597a..c6d62d253 100644 --- a/src/MEDWrapper/MED_Factory.cxx +++ b/src/MEDWrapper/MED_Factory.cxx @@ -211,7 +211,7 @@ namespace MED if (!CheckCompatibility(fileName)) { EXCEPTION(std::runtime_error, "Cannot open file '"<Open(eLECTURE_ECRITURE, &aRet); - // if (aRet < 0) - // myFile->Close(); - // myFile->Open(eLECTURE_AJOUT, &aRet); - // } - if (aRet < 0) { - myFile->Close(); - myFile->Open(eLECTURE, &aRet); + if ( write ) { + myFile->Open(eLECTURE_ECRITURE, &aRet); + if (aRet < 0) { + myFile->Close(); + myFile->Open(eCREATION, &aRet); + } } - if (aRet < 0) { - myFile->Close(); - myFile->Open(eCREATION, &aRet); + else { + myFile->Open(eLECTURE, &aRet); } } diff --git a/src/MEDWrapper/MED_Wrapper.hxx b/src/MEDWrapper/MED_Wrapper.hxx index 7acbf4ce0..e236f206c 100644 --- a/src/MEDWrapper/MED_Wrapper.hxx +++ b/src/MEDWrapper/MED_Wrapper.hxx @@ -52,7 +52,7 @@ namespace MED TWrapper& operator=(const TWrapper&); public: - TWrapper(const std::string& theFileName, TInt theVersion=-1); + TWrapper(const std::string& theFileName, bool write, TInt theVersion=-1); virtual ~TWrapper(); diff --git a/src/Tools/padder/spadderpy/gui/inputdata.py b/src/Tools/padder/spadderpy/gui/inputdata.py index b3edb1a73..0bfb44f3d 100644 --- a/src/Tools/padder/spadderpy/gui/inputdata.py +++ b/src/Tools/padder/spadderpy/gui/inputdata.py @@ -36,6 +36,8 @@ class InputData(DataModeler): 'STEELBAR' ]) + maListe=MESHTYPES.listvalues() + def __init__(self): DataModeler.__init__(self) self.addAttribute( @@ -44,18 +46,18 @@ class InputData(DataModeler): ) self.addAttribute( name = "meshName", - type = TypeString, - range = None + a_type = TypeString, + a_range = None ) self.addAttribute( name = "meshType", - type = TypeInteger, - range = self.MESHTYPES.listvalues() + a_type = TypeInteger, + a_range = [0,1] ) self.addAttribute( name = "groupName", - type = TypeString, - range = None + a_type = TypeString, + a_range = None ) #