]> SALOME platform Git repositories - modules/homard.git/commitdiff
Salome HOME
Merge remote branch 'origin/V7_dev'
authorvsr <vsr@opencascade.com>
Mon, 6 Jun 2016 07:50:29 +0000 (10:50 +0300)
committervsr <vsr@opencascade.com>
Mon, 6 Jun 2016 07:50:29 +0000 (10:50 +0300)
22 files changed:
CMakeLists.txt
doc/en/divers.rst
doc/en/gui_create_boundary.rst
doc/en/tui_create_case.rst
doc/files/licence.en.txt
doc/files/licence.fr.txt
doc/files/tutorial_1.py
doc/files/yacs_script.py
doc/files/yacs_script_test.py
doc/fr/divers.rst
doc/fr/gui_create_boundary.rst
doc/fr/tui_create_case.rst
src/HOMARD/HOMARD_Cas.cxx
src/HOMARD/HomardDriver.cxx
src/HOMARDGUI/CMakeLists.txt
src/HOMARDGUI/CreateCase.ui
src/HOMARDGUI/MonCreateCase.cxx
src/HOMARDGUI/MonCreateCase.h
src/HOMARDGUI/MonEditCase.cxx
src/HOMARD_I/HOMARD_Cas_i.cxx
src/HOMARD_I/HOMARD_Gen_i.cxx
src/tests/Test/test_4.py

index 6e5836413bed6b3e0cb859cd2d602a5180a26d13..5bf657e513dc17f7a61da9ad2879f0383e47adc4 100755 (executable)
@@ -28,12 +28,12 @@ CMAKE_POLICY(SET CMP0003 NEW)
 # Project name, upper case
 STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
 
-SET(${PROJECT_NAME_UC}_MAJOR_VERSION 7)
-SET(${PROJECT_NAME_UC}_MINOR_VERSION 8)
+SET(${PROJECT_NAME_UC}_MAJOR_VERSION 8)
+SET(${PROJECT_NAME_UC}_MINOR_VERSION 0)
 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 0)
+SET(${PROJECT_NAME_UC}_VERSION_DEV 1)
 
 # Find KERNEL
 # ===========
@@ -114,12 +114,20 @@ FIND_PACKAGE(SalomeHDF5 REQUIRED COMPONENTS C)
 ##
 
 # Various
-# Qt4
-FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui)
+# Qt
+IF (NOT SALOME_GUI_BUILD_WITH_QT5)
+  FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui)
+ELSE()
+  FIND_PACKAGE(SalomeQt5 REQUIRED)
+ENDIF()
 # SIP
 FIND_PACKAGE(SalomeSIP REQUIRED)
-# PyQt4
-FIND_PACKAGE(SalomePyQt4 REQUIRED)
+# PyQt
+IF (NOT SALOME_GUI_BUILD_WITH_QT5)
+  FIND_PACKAGE(SalomePyQt4 REQUIRED)
+ELSE()
+  FIND_PACKAGE(SalomePyQt5 REQUIRED)
+ENDIF()
 # OCCT
 FIND_PACKAGE(SalomeCAS REQUIRED)
 
index 265c747c1a737b3e62ec3041f22d1f9d554f2c04..483d40a2237a1b0855679108a50d2f527ff7fb18 100644 (file)
@@ -44,7 +44,7 @@ SALOME RELEASE 7.2:
       ``iter.Compute(option)`` becomes ``iter.Compute(option1, option2)``
     - A serie of iterations that is stored in a directory can be followed (see :ref:`gui_create_case`)
 
-SALOME VERSION 7.3:
+SALOME RELEASE 7.3:
     - English documentation
     - Options to track the computation (see :ref:`tui_create_iteration`): ``iter.SetInfoCompute(MessInfo)``
     - Automatic creation of YACS schema:
@@ -57,7 +57,7 @@ SALOME VERSION 7.3:
       ``SetFieldInterpTimeStepRank(FieldInterp, TimeStep, Rank)``: defines the time step and the rank for the interpolation of the field (see :ref:`tui_create_iteration`)
     - If error occurs into the python instructions, the program stops.
 
-SALOME VERSION 7.4 :
+SALOME RELEASE 7.4 :
     - Scroll bar for the large windows.
     - The meshes are published only if requested.
     - The torus is a new possibility for the analytical boundary.
@@ -65,8 +65,17 @@ SALOME VERSION 7.4 :
     - If an error occurs, the name of the message file is displayed.
     - Release 11.1 for the HOMARD binary. The conformal refinement of the meshes with hexaedra is improved: less meshes are produced.
 
-SALOME VERSION 7.5 :
+SALOME RELEASE 7.5 :
     - Additional extra output: diameters and qualities; the function ``SetExtraOutput(option)`` is now used (see :ref:`tui_create_hypothese`).
     - Release 11.2 for the HOMARD binary ; improvement for the 1D curve boundaries.
 
+SALOME RELEASE 7.6 :
+    - Interpolation of all the fields into the input file.
+
+SALOME RELEASE 8.1 :
+    - Interface with med 3.2.0
+    - New options withinthe choice conformal/non-conformal.
+    - Less meshes are involved in the case of a non conformal refinement of a mesh made of hexahedra.
+    - Correction of an error when refinement and unrefinement are coupled for a mesh made of hexahedra.
+
 
index 3cea82885ae40b6810279129ac274808f27f5750..f65066631e915eae78849ff5547c094c68b5099e 100644 (file)
@@ -71,7 +71,7 @@ This operation is repeated as often as we wish to place faces of meshs on a curv
   Conversely, a boundary can be very well retained by no group. It occurs if it was defined for a previous case and if it is groundless for the case in the course of definition.
 
 
-There are three types of analytical boundary:
+There are four types of analytical boundary:
 
   - Cylindre
   - Sphere
index ddb9252f6c9131ff26509116b0c3d773e360e002..b0151a2945411ee86c7f26005dc6b8bcff1347af 100644 (file)
@@ -141,7 +141,8 @@ Methods of the class cas
 |     - ``ext_type`` : integer as follows:                      |
 |                                                               |
 |         * 0 : Standard MED (default)                          |
-|         * 1 : Saturne 2D                                      |
+|         * 1 : Saturne MED                                     |
+|         * 2 : Saturne 2D MED                                  |
 +---------------------------------------------------------------+
 | .. module:: GetExtType                                        |
 |                                                               |
index 63a0becb730984786f09f4420ae3cd0a7e107937..131bc22bee99d7680a149de3231595143cced9dd 100644 (file)
@@ -1,6 +1,6 @@
     <HOMARD, a SALOME module for Mesh Adaptation>
 
-    Copyright (C) 1996, 2015-2016 EDF
+    Copyright (C) 1996, 2016 EDF
 
     This library is free software; you can redistribute it and/or
     modify it under the terms of the GNU Lesser General Public
index 63a0becb730984786f09f4420ae3cd0a7e107937..131bc22bee99d7680a149de3231595143cced9dd 100644 (file)
@@ -1,6 +1,6 @@
     <HOMARD, a SALOME module for Mesh Adaptation>
 
-    Copyright (C) 1996, 2015-2016 EDF
+    Copyright (C) 1996, 2016 EDF
 
     This library is free software; you can redistribute it and/or
     modify it under the terms of the GNU Lesser General Public
index 230a2f4aaaca6a754fe914034947424269ac6237..63bf336de33c994f46229e0bfe6c11386e76cab3 100755 (executable)
@@ -90,4 +90,3 @@ gzip_gunzip(DATA_TUTORIAL, 1, 1)
 #
 if salome.sg.hasDesktop():
   salome.sg.updateObjBrowser(1)
-  iparameters.getSession().restoreVisualState(1)
index eaa235db6f57914fa51015e885113e8f9ae360e7..be8303400a3efb37abf999b83ee23a57a5ea5d2b 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# -*- coding: iso-8859-1 -*-
+# -*- coding: utf-8 -*-
 # Copyright (C) 2013-2016  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
@@ -178,7 +178,7 @@ Le constructeur de la classe Script
         elif saux == "-DUMP" :
           self.dump = 1
 #
-# 2. Les paramètres de base
+# 2. Les paramètres de base
 #
     self.dico = {}
     self.nomfic_export = None
@@ -623,7 +623,7 @@ Modification du fichier export et reperage de quelques informations
             if typfic == "mmed" :
               nomfic = self.mesh_file
 #
-# 3.2.2.2. Pour les autres fichiers, on recupère le nom initial
+# 3.2.2.2. Pour les autres fichiers, on recupère le nom initial
 #
             else :
               nomfic_l_0 = os.path.basename(nomfic_0)
index 828cabc6ec7486c9472020b13f75c0277fce04a0..74a4d08b0cfafc9d7b1e933d4fb6a7f131f685f7 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# -*- coding: iso-8859-1 -*-
+# -*- coding: utf-8 -*-
 # Copyright (C) 2013-2016  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
@@ -94,7 +94,7 @@ Le constructeur de la classe Script
           self.verbose = 1
           self.verbose_max = 1
 #
-# 2. Les paramètres de base
+# 2. Les paramètres de base
 #
     self.dico = {}
 #
index 203be26e66601302eee2c22e85085cfa15ef4691..0c932893cfa71947216aa403e645f177b67663e2 100644 (file)
@@ -69,5 +69,14 @@ SALOME VERSION 7.5 :
     - Sorties supplémentaires optionnelles : diamètre et qualité ; on utilisera ``SetExtraOutput(option)`` (voir :ref:`tui_create_hypothese`).
     - Passage à la version 11.2 de l'exécutable HOMARD ; amélioration du suivi des frontières courbes 1D.
 
+SALOME VERSION 7.6 :
+    - Pilotage de l’interpolation de tous les champs présents dans le fichier d’entrée.
+
+SALOME VERSION 8.1 :
+    - Interfaçage avec med 3.2.0
+    - Variantes dans les choix conforme / non conforme.
+    - Diminution du nombre de mailles impactées dans le cas d’un raffinement non conforme d’un maillage en hexaèdres.
+    - Correction d'une anomalie en raffinement / déraffinement d’un maillage en hexaèdres.
+
 
 
index 67def0fdc493d056eed1288718e63b74abc0f101..f2cb2bc058103dbebf963d365abcf89969f9c9f5 100644 (file)
@@ -71,7 +71,7 @@ Cette opération est répétée autant de fois que l'on souhaite placer des face
   Inversement, une frontière peut très bien n'être retenue par aucun groupe. Cela arrive si elle a été définie pour un cas précédent et qu'elle est sans objet pour le cas en cours de définition.
 
 
-Il existe trois types de frontière analytique :
+Il existe quatre types de frontière analytique :
 
   - Cylindre
   - Sphère
index 7f0d7d0a14efc76da7468a331141aac5a2891726..a795348d2282000f8154ea0efb0bafff7f72135e 100644 (file)
@@ -141,7 +141,8 @@ Méthodes de la classe cas
 |     - ``ext_type`` : entier précisant le type externe         |
 |                                                               |
 |         * 0 : MED standard (défaut)                           |
-|         * 1 : Saturne 2D                                      |
+|         * 1 : Saturne MED                                     |
+|         * 2 : Saturne 2D MED                                  |
 +---------------------------------------------------------------+
 | .. module:: GetExtType                                        |
 |                                                               |
index 9fb002cb185536fdbc04d1c08ab8ef982caa0d5c..9e23c1ceede2da695f941fb7408ddc7e715444b0 100644 (file)
@@ -164,7 +164,7 @@ const int HOMARD_Cas::GetConfType() const
 //=============================================================================
 void HOMARD_Cas::SetExtType( int ExtType )
 {
-//   VERIFICATION( (ExtType>=0) && (ExtType<=1) );
+//   VERIFICATION( (ExtType>=0) && (ExtType<=2) );
   _ExtType = ExtType;
 }
 //=============================================================================
index df12658880f885249890f27f48c88d7a8f9e959e..6867372c7abce1e71d34c36fbaaf038466d31e55 100644 (file)
@@ -80,8 +80,9 @@ void HomardDriver::TexteAdap( int ExtType )
   MESSAGE("TexteAdap");
 //
   _Texte += "Action   homa\n" ;
-  if ( ExtType ==  0 ) { _Texte += "CCAssoci med\n" ; }
-  else                 { _Texte += "CCAssoci saturne_2d\n" ; }
+  if ( ExtType ==  0 )      { _Texte += "CCAssoci med\n" ; }
+  else if ( ExtType ==  1 ) { _Texte += "CCAssoci saturne\n" ; }
+  else                      { _Texte += "CCAssoci saturne_2d\n" ; }
   _Texte += "ModeHOMA 1\n" ;
   _Texte += "NumeIter " + _siter + "\n" ;
 //
@@ -230,10 +231,10 @@ void HomardDriver::TexteConfRaffDera( int ConfType, int TypeAdap, int TypeRaff,
 //   MESSAGE("A la fin de HomardDriver::TexteConfRaffDera, _Texte ="<<_Texte);
 }
 //===============================================================================
-void HomardDriver::TexteCompo( int NumeComp, const std::string NompCompo)
+void HomardDriver::TexteCompo( int NumeComp, const std::string NomCompo)
 {
-  MESSAGE("TexteCompo, NumeComp = "<<NumeComp<<", NompCompo = "<<NompCompo);
-  _Texte +="CCCoChaI \"" + NompCompo + "\"\n" ;
+  MESSAGE("TexteCompo, NumeComp = "<<NumeComp<<", NomCompo = "<<NomCompo);
+  _Texte +="CCCoChaI \"" + NomCompo + "\"\n" ;
 }
 //===============================================================================
 void HomardDriver::TexteZone( int NumeZone, int ZoneType, int TypeUse, double x0, double x1, double x2, double x3, double x4, double x5, double x6, double x7, double x8 )
index 6ccee31a842ef9ab1be0c968cd004844433334e8..48382c78708d43d9be48dc1219b1ec56e878cb5b 100644 (file)
@@ -17,8 +17,8 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-INCLUDE(UseQt4Ext)
-INCLUDE(UsePyQt4)
+INCLUDE(UseQtExt)
+INCLUDE(UsePyQt)
 
 # --- options ---
 
@@ -113,7 +113,7 @@ SET(_moc_HEADERS
 )
 
 # header files / uic wrappings
-QT4_WRAP_UI(_uic_HEADERS ${_uic_FILES})
+QT_WRAP_UIC(_uic_HEADERS ${_uic_FILES})
   
 # header files / static
 SET(_other_HEADERS
@@ -128,7 +128,7 @@ SET(HOMARD_HEADERS ${_other_HEADERS} ${_moc_HEADERS} ${_uic_HEADERS})
 # --- sources ---
 
 # sources / moc wrappings
-QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
 
 # sources / static
 SET(_other_SOURCES
@@ -167,4 +167,4 @@ TARGET_LINK_LIBRARIES(HOMARD ${_link_LIBRARIES} )
 INSTALL(TARGETS HOMARD EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
 
 INSTALL(FILES ${HOMARD_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
-QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_HOMARD_INSTALL_RES_DATA}")
+QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_HOMARD_INSTALL_RES_DATA}")
index 7db2cd1a9f5e235c30796b9f8fe53cd08c68e988..77c562de36313ccd827eceac7bba7e07deeec7a1 100644 (file)
@@ -41,7 +41,7 @@
    <bool>true</bool>
   </property>
   <layout class="QGridLayout" name="gridLayout_5">
-   <item row="0" column="0" colspan="3">
+   <item row="0" column="0">
     <widget class="QWidget" name="WName" native="true">
      <layout class="QGridLayout" name="gridLayout_2">
       <item row="0" column="0">
@@ -57,7 +57,7 @@
      </layout>
     </widget>
    </item>
-   <item row="0" column="3" colspan="3">
+   <item row="0" column="2" colspan="2">
     <spacer name="horizontalSpacer">
      <property name="orientation">
       <enum>Qt::Horizontal</enum>
@@ -70,7 +70,7 @@
      </property>
     </spacer>
    </item>
-   <item row="1" column="0" colspan="7">
+   <item row="1" column="0" colspan="5">
     <layout class="QHBoxLayout">
      <property name="spacing">
       <number>6</number>
      </item>
     </layout>
    </item>
-   <item row="2" column="6">
+   <item row="2" column="4">
     <spacer>
      <property name="orientation">
       <enum>Qt::Vertical</enum>
      </property>
     </spacer>
    </item>
-   <item row="3" column="0" colspan="7">
+   <item row="3" column="0" colspan="5">
     <layout class="QHBoxLayout">
      <property name="spacing">
       <number>6</number>
      </item>
     </layout>
    </item>
-   <item row="3" column="7">
+   <item row="3" column="5">
     <spacer>
      <property name="orientation">
       <enum>Qt::Vertical</enum>
      </property>
     </spacer>
    </item>
-   <item row="4" column="0" colspan="4">
+   <item row="4" column="0">
     <widget class="QGroupBox" name="GBTypeConf">
      <property name="title">
       <string>Conformity type</string>
      </layout>
     </widget>
    </item>
-   <item row="5" column="0" colspan="5">
+   <item row="5" column="0">
     <layout class="QHBoxLayout">
      <property name="spacing">
       <number>6</number>
      </item>
     </layout>
    </item>
-   <item row="5" column="5">
+   <item row="5" column="3">
     <spacer>
      <property name="orientation">
       <enum>Qt::Vertical</enum>
      </property>
     </spacer>
    </item>
-   <item row="6" column="4">
+   <item row="6" column="2">
     <spacer>
      <property name="orientation">
       <enum>Qt::Vertical</enum>
      </property>
     </spacer>
    </item>
-   <item row="7" column="0" colspan="6">
+   <item row="7" column="0" colspan="4">
     <widget class="QGroupBox" name="GBBoundaryD">
      <property name="sizePolicy">
       <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
      </layout>
     </widget>
    </item>
-   <item row="8" column="0" colspan="8">
+   <item row="8" column="0" colspan="6">
     <widget class="QGroupBox" name="GBBoundaryA">
      <property name="minimumSize">
       <size>
      </layout>
     </widget>
    </item>
-   <item row="9" column="0" colspan="4">
+   <item row="9" column="0">
     <spacer name="spacer">
      <property name="orientation">
       <enum>Qt::Vertical</enum>
      </property>
     </spacer>
    </item>
-   <item row="10" column="0" colspan="3">
+   <item row="10" column="0">
     <widget class="QCheckBox" name="CBAdvanced">
      <property name="text">
       <string>Advanced options</string>
      </property>
     </widget>
    </item>
-   <item row="11" column="0" colspan="6">
+   <item row="11" column="0" colspan="3">
     <widget class="QGroupBox" name="GBAdvancedOptions">
      <property name="title">
       <string>Advanced options</string>
           </widget>
          </item>
          <item row="0" column="1">
+          <widget class="QRadioButton" name="RBSaturne">
+           <property name="text">
+            <string>Saturne</string>
+           </property>
+          </widget>
+         </item>
+         <item row="0" column="2">
           <widget class="QRadioButton" name="RBSaturne2D">
            <property name="text">
             <string>Saturne 2D</string>
      </layout>
     </widget>
    </item>
-   <item row="11" column="7">
+   <item row="11" column="5">
     <spacer name="spacer_3">
      <property name="orientation">
       <enum>Qt::Horizontal</enum>
      </property>
     </spacer>
    </item>
-   <item row="12" column="0" colspan="5">
+   <item row="12" column="0">
     <spacer name="spacer_4">
      <property name="orientation">
       <enum>Qt::Vertical</enum>
      </property>
     </spacer>
    </item>
-   <item row="13" column="0" colspan="2">
+   <item row="13" column="0">
     <widget class="QLabel" name="Comment">
      <property name="text">
       <string> No comment.</string>
      </property>
     </spacer>
    </item>
-   <item row="14" column="6" colspan="2">
+   <item row="14" column="4" colspan="2">
     <spacer name="spacer_2">
      <property name="orientation">
       <enum>Qt::Horizontal</enum>
     </spacer>
    </item>
   </layout>
-  <zorder>WName</zorder>
-  <zorder>GBTypeConf</zorder>
-  <zorder>GBBoundaryD</zorder>
-  <zorder>GBBoundaryA</zorder>
-  <zorder>CBAdvanced</zorder>
-  <zorder>GBAdvancedOptions</zorder>
-  <zorder>Comment</zorder>
-  <zorder>GroupButtons</zorder>
-  <zorder>RBSaturne2D</zorder>
-  <zorder>RBSaturne2D</zorder>
-  <zorder>RBSaturne2D</zorder>
  </widget>
  <resources/>
  <connections/>
index a00a876f3f924e1b63c2d33211ceda524dac3a7e..a912f79cfe30d62ff63f7407b6db8b142a279a71 100644 (file)
@@ -102,6 +102,7 @@ void MonCreateCase::InitConnect()
     connect( RBNCQuelconque, SIGNAL(clicked()), this, SLOT(SetNCQuelconque()));
 
     connect( RBMED,          SIGNAL(clicked()), this, SLOT(SetMED()));
+    connect( RBSaturne,      SIGNAL(clicked()), this, SLOT(SetSaturne()));
     connect( RBSaturne2D,    SIGNAL(clicked()), this, SLOT(SetSaturne2D()));
 
     connect( buttonOk,       SIGNAL(pressed()), this, SLOT(PushOnOK()));
@@ -419,10 +420,17 @@ void MonCreateCase::SetMED()
   RBMED->setChecked(true);
 }
 // ------------------------------------------------------------------------
-void MonCreateCase::SetSaturne2D()
+void MonCreateCase::SetSaturne()
 // ------------------------------------------------------------------------
 {
   _ExtType = 1 ;
+  RBSaturne->setChecked(true);
+}
+// ------------------------------------------------------------------------
+void MonCreateCase::SetSaturne2D()
+// ------------------------------------------------------------------------
+{
+  _ExtType = 2 ;
   RBSaturne2D->setChecked(true);
 }
 // ------------------------------------------------------------------------
index 4761bc4ad375533c322b05bf524ce880974aebef..7b3815992c5e8da6e13bfe8eaf1e656786acd8b3 100644 (file)
@@ -71,6 +71,7 @@ public slots:
     virtual void SetNCQuelconque();
 
     virtual void SetMED();
+    virtual void SetSaturne();
     virtual void SetSaturne2D();
 
     virtual void SetBoundaryD();
index c4e8c7606bf7b90fb5cf66442f28f5d56428afa1..2ad3ef4ec58dd6eb0b99b0ef42dad4fde5d565f3 100644 (file)
@@ -210,10 +210,13 @@ void MonEditCase::InitValEdit()
     else
     { GBFormat->setVisible(1);
       RBMED->setVisible(1);
+      RBSaturne->setVisible(1);
       RBSaturne2D->setVisible(1);
-      RBSaturne2D->setChecked(true);
+      if ( ExtType == 1 ) { RBSaturne->setChecked(true); }
+      else                { RBSaturne2D->setChecked(true); }
     }
     RBMED->setEnabled(false);
+    RBSaturne->setEnabled(false);
     RBSaturne2D->setEnabled(false);
   }
   else
index 3eb45ec9ff461ba322bb728d3d9704e4b029bd80..6558e235baf9304168e6c956a3748e8fc13ed994 100755 (executable)
@@ -250,7 +250,7 @@ CORBA::Long HOMARD_Cas_i::GetConfType()
 void HOMARD_Cas_i::SetExtType( CORBA::Long ExtType )
 {
   ASSERT( myHomardCas );
-//   VERIFICATION( (ExtType>=0) && (ExtType<=1) );
+//   VERIFICATION( (ExtType>=0) && (ExtType<=2) );
   myHomardCas->SetExtType( ExtType );
 }
 //=============================================================================
index 475064cf62f7011e1b2929d5541ee43ce163c44c..b1e210195b607301cab076a4ee0d522b6b3cbd0c 100644 (file)
@@ -3083,8 +3083,11 @@ void HOMARD_Gen_i::DriverTexteField(HOMARD::HOMARD_Iteration_var myIteration, HO
   for (int NumeComp = 0; NumeComp< numberOfCompos; NumeComp++)
   {
     std::string nomCompo = std::string((*mescompo)[NumeComp]);
-    MESSAGE( "... nomCompo = " << nomCompo );
-    myDriver->TexteCompo(NumeComp, nomCompo);
+    if ((system(nomCompo.c_str())) != 0)
+    {
+      MESSAGE( "... nomCompo = " << nomCompo );
+      myDriver->TexteCompo(NumeComp, nomCompo);
+    }
   }
   return ;
 }
index 8d4d1d152b1cc3875e5cb655b3021a29e7297efb..01013b3b97b351dfbc858598f8dfc811fd983d09 100755 (executable)
@@ -21,7 +21,7 @@
 Python script for HOMARD
 Test test_4
 """
-__revision__ = "V2.1"
+__revision__ = "V2.2"
 
 #========================================================================
 TEST_NAME = "test_4"
@@ -70,7 +70,6 @@ from salome.geom import geomBuilder
 from salome.smesh import smeshBuilder
 from salome.StdMeshers import StdMeshersBuilder
 #
-from MEDLoader import MEDLoader
 from MEDCouplingRemapper import MEDCouplingRemapper
 
 import iparameters