Salome HOME
Merge from V6_5_BR 05/06/2012
authorvsr <vsr@opencascade.com>
Tue, 5 Jun 2012 13:13:43 +0000 (13:13 +0000)
committervsr <vsr@opencascade.com>
Tue, 5 Jun 2012 13:13:43 +0000 (13:13 +0000)
129 files changed:
HOMARD_version.h.in
Makefile.am
adm_local/Makefile.am
adm_local/unix/Makefile.am
adm_local/unix/config_files/Makefile.am
adm_local/unix/config_files/check_GUI.m4
adm_local/unix/config_files/check_Med2.m4
adm_local/unix/config_files/check_sphinx.m4
adm_local/unix/make_common_starter.am
bin/Makefile.am
bin/runAppli.in
bin/runSalome.py
build_configure
clean_configure
configure.ac
doc/Makefile.am
doc/files/tutorial_1.py
doc/files/tutorial_2.py
doc/files/tutorial_3.py
doc/files/tutorial_4.py
doc/files/tutorial_5.py
doc/gui_usage.rst
doc/images/intro_31.png [new file with mode: 0644]
doc/images/intro_32.png [new file with mode: 0644]
doc/images/intro_33.png [new file with mode: 0644]
doc/images/intro_34.png [new file with mode: 0644]
doc/images/intro_35.png [new file with mode: 0644]
doc/images/intro_36.png [new file with mode: 0644]
doc/images/intro_37.png [new file with mode: 0644]
doc/images/intro_38.png [new file with mode: 0644]
doc/images/intro_39.png [new file with mode: 0644]
doc/images/intro_40.png [new file with mode: 0644]
doc/intro.rst
idl/HOMARD_Boundary.idl
idl/HOMARD_Cas.idl
idl/HOMARD_Gen.idl
idl/HOMARD_Hypothesis.idl
idl/HOMARD_Iteration.idl
idl/HOMARD_Zone.idl
idl/Makefile.am
resources/HOMARDCatalog.xml.in
resources/HOMARD_en.xml
resources/HOMARD_fr.xml
resources/Makefile.am
resources/SalomeApp.xml.in
src/HOMARD/HOMARD_Boundary.cxx
src/HOMARD/HOMARD_Boundary.hxx
src/HOMARD/HOMARD_Cas.cxx
src/HOMARD/HOMARD_Cas.hxx
src/HOMARD/HOMARD_DriverTools.cxx
src/HOMARD/HOMARD_DriverTools.hxx
src/HOMARD/HOMARD_Gen.cxx
src/HOMARD/HOMARD_Gen.hxx
src/HOMARD/HOMARD_Hypothesis.cxx
src/HOMARD/HOMARD_Hypothesis.hxx
src/HOMARD/HOMARD_Iteration.cxx
src/HOMARD/HOMARD_Iteration.hxx
src/HOMARD/HOMARD_Zone.cxx
src/HOMARD/HOMARD_Zone.hxx
src/HOMARD/HomardDriver.cxx
src/HOMARD/HomardDriver.hxx
src/HOMARD/Makefile.am
src/HOMARDGUI/CreateHypothesis.h
src/HOMARDGUI/CreateHypothesis.ui
src/HOMARDGUI/CreateIteration.h
src/HOMARDGUI/HOMARDGUI.cxx
src/HOMARDGUI/HOMARDGUI.h
src/HOMARDGUI/HOMARDGUI_Utils.cxx
src/HOMARDGUI/HOMARDGUI_Utils.h
src/HOMARDGUI/HOMARD_msg_fr.ts
src/HOMARDGUI/HomardQtCommun.cxx
src/HOMARDGUI/HomardQtCommun.h
src/HOMARDGUI/Makefile.am
src/HOMARDGUI/MonCreateBoundaryAn.cxx
src/HOMARDGUI/MonCreateBoundaryAn.h
src/HOMARDGUI/MonCreateBoundaryDi.cxx
src/HOMARDGUI/MonCreateBoundaryDi.h
src/HOMARDGUI/MonCreateCase.cxx
src/HOMARDGUI/MonCreateCase.h
src/HOMARDGUI/MonCreateHypothesis.cxx
src/HOMARDGUI/MonCreateHypothesis.h
src/HOMARDGUI/MonCreateIteration.cxx
src/HOMARDGUI/MonCreateIteration.h
src/HOMARDGUI/MonCreateListGroup.cxx
src/HOMARDGUI/MonCreateListGroup.h
src/HOMARDGUI/MonCreateZone.cxx
src/HOMARDGUI/MonCreateZone.h
src/HOMARDGUI/MonEditBoundaryAn.cxx
src/HOMARDGUI/MonEditBoundaryAn.h
src/HOMARDGUI/MonEditBoundaryDi.cxx
src/HOMARDGUI/MonEditBoundaryDi.h
src/HOMARDGUI/MonEditCase.cxx
src/HOMARDGUI/MonEditCase.h
src/HOMARDGUI/MonEditFile.cxx
src/HOMARDGUI/MonEditFile.h
src/HOMARDGUI/MonEditHypothesis.cxx
src/HOMARDGUI/MonEditHypothesis.h
src/HOMARDGUI/MonEditIteration.cxx
src/HOMARDGUI/MonEditIteration.h
src/HOMARDGUI/MonEditListGroup.cxx
src/HOMARDGUI/MonEditListGroup.h
src/HOMARDGUI/MonEditZone.cxx
src/HOMARDGUI/MonEditZone.h
src/HOMARD_I/HOMARD_Boundary_i.cxx
src/HOMARD_I/HOMARD_Boundary_i.hxx
src/HOMARD_I/HOMARD_Cas_i.cxx
src/HOMARD_I/HOMARD_Cas_i.hxx
src/HOMARD_I/HOMARD_Gen_i.cxx
src/HOMARD_I/HOMARD_Gen_i.hxx
src/HOMARD_I/HOMARD_Hypothesis_i.cxx
src/HOMARD_I/HOMARD_Hypothesis_i.hxx
src/HOMARD_I/HOMARD_Iteration_i.cxx
src/HOMARD_I/HOMARD_Iteration_i.hxx
src/HOMARD_I/HOMARD_Zone_i.cxx
src/HOMARD_I/HOMARD_Zone_i.hxx
src/HOMARD_I/HomardMedCommun.cxx
src/HOMARD_I/HomardMedCommun.h
src/HOMARD_I/Makefile.am
src/HOMARD_SCRIPTS/Makefile.am
src/HOMARD_SCRIPTS/testHomard.py
src/HOMARD_SCRIPTS/test_homard.py
src/HOMARD_SWIG/HOMARD_shared_modules.py
src/HOMARD_SWIG/Makefile.am
src/HOMARD_SWIG/libHOMARD_Swig.i
src/Makefile.am
tests/Makefile.am
tests/test_1.py
tests/test_2.py
tests/test_3.py

index a9e6d686410c0f22b2dc8bc47fcdd2fcedf6b45c..d1873f6fcb03d27121d768f3aa980690b0f909ee 100644 (file)
@@ -1,7 +1,4 @@
-// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 442154d630232a440baac66dcf47a58884601f98..39df6985abaf1c5a6853b6c616d1084e3108df5b 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index b346122c9a503d5006160ab788856a2f3a18bed2..88aeda65dac73fbd1c97291288bbff3e7601f54f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index b3e4729d005e6e6ddb2a0145779388c105832c9c..328edada5302c02a47f3733ca2c8d6220e07d95b 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index b76cc88ac1d7633d5c5ffff4efd123683a9b7f0d..edbfd5b9c0ae1028004209ca23d7ccf6e7b54b6e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index def4da66a8e39cb65a4096a7ae67085430bd3ffe..8907e15ebaa44c8642ee0d1d935185b5af24bf2e 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 28450c5de550e067c06e02413398c75cb1a40d38..bd8f7deb4bb3d0db4f73758bcbc1700b250c4e88 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright (C) 2011  CEA/DEN, EDF R&D
+dnl Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 dnl
 dnl This library is free software; you can redistribute it and/or
 dnl modify it under the terms of the GNU Lesser General Public
index 6e213187d0ad5f08d4430942746a00d4323b416b..91bb85735249c0e4848e8c947fcd14e14d96dcd3 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright (C) 2011  CEA/DEN, EDF R&D
+dnl Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 dnl
 dnl This library is free software; you can redistribute it and/or
 dnl modify it under the terms of the GNU Lesser General Public
index 29e3db7e295f32e391701079ee5dce2c00bf0764..e76403b63981098ba5403455b50330214fc89263 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 7f23a4a2a04dd95559ddc3bb3d085c01e21fc9a0..4a6b36badb310bc68bd411286b058649307dc5aa 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 5137208d1059ba209073e61ccdb820b847364aaa..16b7fb540483228e80fb73af2b513b0585c00489 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 8d1c8db2b0c7fa250f6b6af8df055db2a8d7118e..f481b367594d1f5c3091962f741bff342cf23ef9 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index bfc4f2af1bb213a30febf068278565eeac6f4157..9a3b6c24bd779254dd4b63512abbeacb8fa9b3bc 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 7c49c98e9322850aeb3344389d083112116db7b6..c7c8b7f03653cdbdfca43766108863b5c381b0aa 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 9a2d01bf2b24bcff6204f7e8678796689e62268d..7094ead4d5f932d6d26317e0c562b8f01f5d173d 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -23,7 +23,7 @@
 # Modified by : Alexander BORODIN (OCN) - autotools usage
 # Created from configure.in.base
 #
-AC_INIT([Salome2 Project HOMARD module], [6.4.0], [webmaster.salome@opencascade.com], [SalomeHOMARD])
+AC_INIT([Salome2 Project HOMARD module], [6.5.0], [webmaster.salome@opencascade.com], [SalomeHOMARD])
 AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
 AC_CANONICAL_HOST
 AC_CANONICAL_TARGET
index 53bc4a345413bdd06738fe8da296210a1ae230df..9c9af87b361d2b67af2e752a074805d3e19587f2 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 33d3ad90d52de72434417724b9049bbf2c869afa..eaebabc20d5a138a60d4fe70caed768b3a54e059 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 # -*- coding: iso-8859-1 -*-
 
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 25ec4357a527d9e7e76848e31ed9b5f19971d3cb..6f4ec2333bd42b3f87941dc7474ed4c184bbf3d0 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 # -*- coding: iso-8859-1 -*-
 
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 006cf3b0665e55df3d27015fb33eba75f240b167..c0aaeb5cda37ced83b52a0e7e3fe249547e55efa 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 # -*- coding: iso-8859-1 -*-
 
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 90ba82a75c40ce8a2513b7d47bf9c16c781d1a1b..c3aa70ff3273b2c935c903d6616a4a797c4b8af0 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 # -*- coding: iso-8859-1 -*-
 
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index fd9857d86d8ea1b432e7972d38cbee43d7d958b2..a876501b3992abc21682b1f3999060064949f3c4 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 # -*- coding: iso-8859-1 -*-
 
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index b75a22df64b5a6370320b0044d03acbabeaf9167..81e7bf599441d68bb46b2cd56f486f44dbcdb975 100644 (file)
@@ -1,3 +1,5 @@
+.. _gui_usage:
+
 Mode d'emploi pour l'interface graphique
 ========================================
 .. index:: single: cas
diff --git a/doc/images/intro_31.png b/doc/images/intro_31.png
new file mode 100644 (file)
index 0000000..175264e
Binary files /dev/null and b/doc/images/intro_31.png differ
diff --git a/doc/images/intro_32.png b/doc/images/intro_32.png
new file mode 100644 (file)
index 0000000..f4022ca
Binary files /dev/null and b/doc/images/intro_32.png differ
diff --git a/doc/images/intro_33.png b/doc/images/intro_33.png
new file mode 100644 (file)
index 0000000..a0bd05e
Binary files /dev/null and b/doc/images/intro_33.png differ
diff --git a/doc/images/intro_34.png b/doc/images/intro_34.png
new file mode 100644 (file)
index 0000000..9486689
Binary files /dev/null and b/doc/images/intro_34.png differ
diff --git a/doc/images/intro_35.png b/doc/images/intro_35.png
new file mode 100644 (file)
index 0000000..7287147
Binary files /dev/null and b/doc/images/intro_35.png differ
diff --git a/doc/images/intro_36.png b/doc/images/intro_36.png
new file mode 100644 (file)
index 0000000..2d363da
Binary files /dev/null and b/doc/images/intro_36.png differ
diff --git a/doc/images/intro_37.png b/doc/images/intro_37.png
new file mode 100644 (file)
index 0000000..c6f7943
Binary files /dev/null and b/doc/images/intro_37.png differ
diff --git a/doc/images/intro_38.png b/doc/images/intro_38.png
new file mode 100644 (file)
index 0000000..2d29392
Binary files /dev/null and b/doc/images/intro_38.png differ
diff --git a/doc/images/intro_39.png b/doc/images/intro_39.png
new file mode 100644 (file)
index 0000000..ad542ba
Binary files /dev/null and b/doc/images/intro_39.png differ
diff --git a/doc/images/intro_40.png b/doc/images/intro_40.png
new file mode 100644 (file)
index 0000000..36c447a
Binary files /dev/null and b/doc/images/intro_40.png differ
index ec755610afca1040812ebd8d002dce01fa774b00..a40df79897715882445d8d721d892cb599dae69c 100644 (file)
@@ -1,6 +1,10 @@
+.. _gui_intro:
 
 Introduction
 ============
+
+Présentation générale
+"""""""""""""""""""""
 Le logiciel HOMARD est destiné Ã  adapter les maillages dans le cadre des codes de calculs par Ã©léments ou volumes finis. Ce logiciel, réalisé par EDF R&D, procède par raffinement et déraffinement des maillages bidimensionnels ou tridimensionnels. Il est conçu pour Ãªtre utilisé indépendamment du code de calcul auquel il est couplé.
 
 Raffiner le maillage signifie découper des mailles désignées selon des indications founies par l'utilisateur. Déraffiner le maillage signifie revenir en arrière sur des découpages précédemment réalisés : ainsi, en aucun cas HOMARD ne peut simplifier un maillage existant qui aura Ã©té créé trop fin. Le déraffinement prend toute son importance dans les calculs quand la zone d'intérêt se déplace au cours du calcul pour ne plus tenir compte de raffinements précédemment réalisés et qui deviennent inutiles. On en trouvera une illustration au bas de cette page.
@@ -43,7 +47,8 @@ Des variantes de ce sch
 
 
 Quelques illustrations de maillage adaptés
-==========================================
+""""""""""""""""""""""""""""""""""""""""""
+.. index:: single: illustration
 
 +---------------------------------------------------------------+
 +---------------------------------------------------------------+
@@ -78,6 +83,68 @@ Quelques illustrations de maillage adapt
 |                                                               |
 +---------------------------------------------------------------+
 
+Démarrage rapide
+""""""""""""""""
+.. index:: single: démarrage
+.. index:: single: exemple
+
+L'ensemble des options de pilotage du module HOMARD dans Salome est décrit dans le :ref:`gui_usage`. Mais on trouvera ici le B.A. BA pour découvrir l'utilisation de HOMARD Ã  partir d'un exemple simple. Imaginons que l'on a effectué un calcul de thermique sur un maillage donné. On a récupéré en sortie de ce calcul un fichier au format MED, contenant le maillage et le champ des températures aux noeuds. On aimerait adapter le maillage de telle sorte que l'écart de température entre deux noeuds voisins soit inférieur Ã  une valeur donnée.
+
+La première action nécessite de lancer le module HOMARD, en créant une nouvelle Ã©tude, selon le principe qui a Ã©té retenu pour tous les autres modules de Salome.
+
+.. image:: images/homard_1.png
+   :align: center
+
+Une fois le module HOMARD activé, on crée un cas par le choix "*Nouveau cas*" dans le menu HOMARD. La fenêtre suivante apparaît :
+
+.. image:: images/intro_31.png
+   :align: center
+
+Il faut fournir deux informations : le répertoire qui contiendra les fichiers produits par les adaptations successives et le fichier issu du calcul que l'on vient de faire. On valide par "Appliquer et fermer".
+
+.. image:: images/intro_32.png
+   :align: center
+
+L'arbre d'études est enrichi de ce cas. On déplie le cas jusqu'à afficher le maillage correspondant Ã  l'itération 0. On désigne cette itération initiale et on demande une nouvelle itération par "*Nouvelle itération*" dans le menu HOMARD ou Ã  la souris. La fenêtre suivante apparaît :
+
+.. image:: images/intro_33.png
+   :align: center
+
+On désigne le fichier issu du calcul que l'on vient de faire et qui contient le champ de température. C'est le même que celui qui a Ã©té donné dans la définition du cas.
+
+.. image:: images/intro_34.png
+   :align: center
+
+On clique sur "Nouveau" dans la rubrique hypothèse. La fenêtre suivante apparaît :
+
+.. image:: images/intro_35.png
+   :align: center
 
+On modifie les options par défaut pour correspondre Ã  notre choix de pilotage de l'adaptation. La sélection d'un pilotage par les saut entre Ã©léments et d'un seuil absolu de 4.0 va demander le découpage de chaque arête de maille où le température varie de plus de 4.0 degrés entre les deux extrémités de l'arête.
+
+.. image:: images/intro_36.png
+   :align: center
+
+On valide par "Appliquer et fermer" cette création d'hypothése, puis la création de la nouvelle itération. On se retrouve avec un arbre d'études enrichi avec la description de l'hypothèse créée et de l'itération Ã  calculer, repérée par une icone "en attente".
+
+Lancer l'adaptation s'obtient en sélectionnant l'itération Ã  calculer. On choisit ensuite "*Calculer*" dans le menu HOMARD ou Ã  la souris. L'arbre d'études s'enrichit de fichiers d'informations et du nom du fichier au format MED qui contient le nouveau maillage, ``maill.01.med``. On remarque qu'il est placé dans le répertoire qui a Ã©té désigné Ã  la création du cas.
+
+.. image:: images/intro_37.png
+   :align: center
 
+A ce stade, on va utiliser ce nouveau maillage pour un deuxième calcul, dans les mêmes conditions que le premier. Une fois que ce nouveau calcul est achevé, on peut décider de poursuivre le processus d'adaptation. Pour cela on revient dans Salome et on active le module HOMARD. On désigne l'itération que l'avait calculée précédemment "*Iter_1*" et on demande une nouvelle itération. La fenêtre suivante apparaît :
+
+.. image:: images/intro_38.png
+   :align: center
+
+Comme on continue l'adaptation avec le même critére de saut de température entre noeuds voisins, on garde l'hypothèse "*Hypo_1*". Il suffit de désigner le fichier issu du calcul que l'on vient de faire et qui contient le nouveau champ de température.
+
+.. image:: images/intro_39.png
+   :align: center
+
+Comme précédemment, on lance l'adaptation et on récupère les résultats dans le répertoire du cas, dont le maillage ``maill.02.med``.
+
+.. image:: images/intro_40.png
+   :align: center
 
+On peut alors lancer un nouveau calcul sur ce nouveau maillage et poursuiver cette alternance calcul/adaptation jusqu'à l'obtention du résultat attendu.
index 3b29b714dbc075bcc54c6ddb95e0eb159a9c6732..79131c7b363895448d7ec2e78358b3a31b2feb13 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 132150fa89538e513837d47fd7db43e1af180809..d79354bc4549009199e6c9ac746f7d086b0e0b1c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index cbad6056ca647c0c0c28d08e3bd1ccd1628123f4..49f7180fbe7635014d5b56992722b4aadd87965b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 5febc1d5d604300e8b726b468c05bf3aeab7159c..7ff0b81ba13f9be6cbd57c35894a23f7ef4e3218 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 26582e36cc7ef07bde4e45e2e63a05be91a2f365..12612c05472a4dc9ac83f5cef1a650bafd4e5409 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index cdc22467e98e5bb06272822595c155ed1d28092e..1ae7aaec06875d9e29610c55e63df2586e0ace93 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 21efb61679a7b96daa579b2183c8011c077497dc..f6e520d4e1577619b21e1f375e4fc7a73b4bf1fd 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -26,6 +26,8 @@ include $(top_srcdir)/adm_local/unix/make_common_starter.am
 
 BASEIDL_FILES = HOMARD_Gen.idl HOMARD_Cas.idl HOMARD_Hypothesis.idl HOMARD_Iteration.idl HOMARD_Zone.idl HOMARD_Boundary.idl
 
+BASEIDL_FILES_PY=$(BASEIDL_FILES:%.idl=%_idl.py)
+
 # This variable defines the files to be installed
 dist_salomeidl_DATA = $(BASEIDL_FILES)
 
@@ -94,9 +96,15 @@ install-exec-local: $(BASEIDL_FILES:%=$(top_srcdir)/idl/%)
          $(OMNIORB_IDL) $(IDLPYFLAGS) -C$(DESTDIR)$(salomepythondir) $$file ; \
        done
 
-# uninstall-local removes too much, but it works in distcheck
+# we want to remove only staff generated for IDL files and nothing more
 uninstall-local:
-       rm -rf $(DESTDIR)$(salomepythondir)/*
+       @for modulen in HOMARD ; do \
+         test -d $(DESTDIR)$(salomepythondir)/$${modulen} && echo "Removing $(DESTDIR)$(salomepythondir)/$${modulen}" && rm -rf $(DESTDIR)$(salomepythondir)/$${modulen} ; \
+         test -d $(DESTDIR)$(salomepythondir)/$${modulen}__POA && echo "Removing $(DESTDIR)$(salomepythondir)/$${modulen}__POA" && rm -rf $(DESTDIR)$(salomepythondir)/$${modulen}__POA ; \
+       done ; \
+       for filen in $(BASEIDL_FILES_PY) ; do \
+         echo "Removing $(DESTDIR)$(salomepythondir)/$${filen}" && rm -f $(DESTDIR)$(salomepythondir)/$${filen}* ; \
+       done
 
 mostlyclean-local:
        -rm -f *.hh *.cc .depidl
index 3919a17298f8c1e08b045d1afbc3429712647ec6..6aee5c2f817a3d52527324f5cb237855847c2614 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='us-ascii' ?>
 
 <!--
-  Copyright (C) 2011  CEA/DEN, EDF RD
+  Copyright (C) 2011-2012  CEA/DEN, EDF RD
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
index f4d506a0f43af2e5341577f3fbe5542b44a3d0e6..573fadb56878de1963b4cbf45bddf7189380447e 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='us-ascii'?>
 
 <!--
-  Copyright (C) 2011  CEA/DEN, EDF R&D
+  Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
index 7f5b8da9fd3d79a69c914e16371e166dc45c59ba..0b93312256694b1f74f7b49c28d4b94bb3c45999 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='us-ascii'?>
 
 <!--
-  Copyright (C) 2011  CEA/DEN, EDF R&D
+  Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
index 39cc502768ad45f1fd3d700402656230d2a8b47d..d2a60218f13594e6b66e9b9941350d2f0adbeeb7 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 6dfa2b12077906389f2afe699405907d3444d853..81767390efb52929adba333d82fc9cf7bc1f80d1 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-  Copyright (C) 2011  CEA/DEN, EDF R&D
+  Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
index ab5a5eb37f7c2d47b3526441ed353a61e1ab92e9..6414f6bc7c50cb3c2faa890f16c3a78fb926de03 100644 (file)
@@ -1,6 +1,6 @@
 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
 //
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 0d69a704df7e4db810890aa4415d813d606f01f5..011a99988fc54571018f0c4e5b04667fcfd2c672 100644 (file)
@@ -1,6 +1,6 @@
 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
 //
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 5522eaea9a15852aa838fb5ceaa8d3b039ca4a75..af223f81579d897915ca939be8eb84e25c3bdee8 100644 (file)
@@ -1,6 +1,6 @@
 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
 //
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index fef06e681f2b4584963180758a2fd604e94da1c1..30dda0777976a62de9b1cf6ab7681e26a72dbed6 100644 (file)
@@ -1,6 +1,6 @@
 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
 //
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 8b605fde0246f6c1293e3c92bbab87d17c51f3d4..ccd5429f7ae60cb2556152138cc844ff034f343a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index e6c5ab3ace1a949bc945465b373dd6257da3607d..9ddd76d888b8672c4af6495bce0c1d21536ed425 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index ff50538bce4039298f7ac18e4028e6731e83f229..7b140e706a2900f406c3b01a5962b8c4175039c6 100644 (file)
@@ -1,6 +1,6 @@
 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
 //
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 93edb786657eb1b7ebab329f5a0d5a1e2d8b6826..f82c805e564b119a431120d6ad5ce8355a79b49a 100644 (file)
@@ -1,6 +1,6 @@
 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
 //
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index f263c8b660069729f3e2d01b0282126faf784a19..40874c5350f3002cc234c297210ecdc1702c9ae6 100644 (file)
@@ -1,6 +1,6 @@
 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
 //
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 84893147caa6e7f802297034b53d907bc0e3c764..c641cf9b21adb7b9fdb4ecc55809c9db04176bd6 100644 (file)
@@ -1,6 +1,6 @@
 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
 //
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index f7bdbd9983718f36e692805a2ec89767e834e347..3dcd98b1a46af63dd329d3614f070bdfb9bfc742 100644 (file)
@@ -1,6 +1,6 @@
 //  HOMARD HOMARD : implementation of HOMARD idl descriptions
 //
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 7345a83bb57432ae89dc4eba90f6dfdd57ddbe7f..8e5793713eec1219f447374dceb857e5f280a0de 100644 (file)
@@ -1,6 +1,6 @@
 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
 //
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index f412cb7e892bfba70984fb00cc33b9cb4db06e60..0b23732d77f4764eea37f3de9c1f4ca9f589541e 100644 (file)
@@ -1,6 +1,6 @@
 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
 //
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 0bc99e41847a0baaf0e9b4918912e37751eaf0e5..e8906bb269ce997461c84830af0314c0df7ea166 100644 (file)
@@ -1,6 +1,6 @@
 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
 //
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index e4d809bc57c7a0f719f8aace363c9c0965551783..c025a5e22644e58862035a26feea331c89f407c7 100644 (file)
@@ -1,6 +1,6 @@
 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
 //
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 5eb98f38147804da9622887ffda4e6d1ad834011..3c1c0a0192ecb007810226738b66f4ba8db998b7 100644 (file)
@@ -1,6 +1,6 @@
 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
 //
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index c36cc46d56ad568658196883cd420c2116eb0831..49ef0d09ba974927d8e625fc2326aac52ae0d265 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 361e4cfdb18e65aaa5992f4f93cdc8349d4f8f8c..e40b04b889d0dec5313a93883cff663f068aaed7 100644 (file)
@@ -1,7 +1,7 @@
 /********************************************************************************
 ** Form generated from reading UI file 'CreateHypothesis.ui'
 **
-** Created: Thu Mar 22 13:46:51 2012
+** Created: Wed Apr 11 11:35:26 2012
 **      by: Qt User Interface Compiler version 4.6.3
 **
 ** WARNING! All changes made in this file will be lost when recompiling UI file!
@@ -37,7 +37,6 @@ class Ui_CreateHypothesis
 {
 public:
     QGridLayout *gridLayout_3;
-    QLabel *Name;
     QLineEdit *LEHypothesisName;
     QGroupBox *GBTypeAdaptation;
     QHBoxLayout *hboxLayout;
@@ -86,7 +85,7 @@ public:
     QDoubleSpinBox *SpinBox_CAbs;
     QRadioButton *RBCNo;
     QGroupBox *GBAreaManagement;
-    QGridLayout *gridLayout5;
+    QGridLayout *gridLayout_4;
     QTableWidget *TWZone;
     QSpacerItem *horizontalSpacer;
     QVBoxLayout *vboxLayout1;
@@ -96,8 +95,8 @@ public:
     QPushButton *PBZoneDelete;
     QSpacerItem *spacerItem2;
     QGroupBox *GBField;
+    QGridLayout *gridLayout5;
     QGridLayout *gridLayout6;
-    QGridLayout *gridLayout7;
     QRadioButton *RBFieldNo;
     QRadioButton *RBFieldAll;
     QRadioButton *RBFieldChosen;
@@ -116,11 +115,12 @@ public:
     QRadioButton *RBAIR;
     QRadioButton *RBAID;
     QGroupBox *GBButtons;
-    QGridLayout *gridLayout8;
+    QGridLayout *gridLayout7;
     QPushButton *buttonOk;
     QPushButton *buttonApply;
     QPushButton *buttonCancel;
     QPushButton *buttonHelp;
+    QLabel *Name;
 
     void setupUi(QDialog *CreateHypothesis)
     {
@@ -136,11 +136,6 @@ public:
         CreateHypothesis->setSizeGripEnabled(true);
         gridLayout_3 = new QGridLayout(CreateHypothesis);
         gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
-        Name = new QLabel(CreateHypothesis);
-        Name->setObjectName(QString::fromUtf8("Name"));
-
-        gridLayout_3->addWidget(Name, 0, 0, 1, 1);
-
         LEHypothesisName = new QLineEdit(CreateHypothesis);
         LEHypothesisName->setObjectName(QString::fromUtf8("LEHypothesisName"));
         LEHypothesisName->setMinimumSize(QSize(382, 31));
@@ -476,8 +471,8 @@ public:
         GBAreaManagement->setObjectName(QString::fromUtf8("GBAreaManagement"));
         sizePolicy.setHeightForWidth(GBAreaManagement->sizePolicy().hasHeightForWidth());
         GBAreaManagement->setSizePolicy(sizePolicy);
-        gridLayout5 = new QGridLayout(GBAreaManagement);
-        gridLayout5->setObjectName(QString::fromUtf8("gridLayout5"));
+        gridLayout_4 = new QGridLayout(GBAreaManagement);
+        gridLayout_4->setObjectName(QString::fromUtf8("gridLayout_4"));
         TWZone = new QTableWidget(GBAreaManagement);
         if (TWZone->columnCount() < 3)
             TWZone->setColumnCount(3);
@@ -494,11 +489,11 @@ public:
         TWZone->setRowCount(0);
         TWZone->setColumnCount(3);
 
-        gridLayout5->addWidget(TWZone, 0, 0, 1, 1);
+        gridLayout_4->addWidget(TWZone, 0, 0, 1, 1);
 
         horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
 
-        gridLayout5->addItem(horizontalSpacer, 0, 1, 1, 1);
+        gridLayout_4->addItem(horizontalSpacer, 0, 1, 1, 1);
 
         vboxLayout1 = new QVBoxLayout();
 #ifndef Q_OS_MAC
@@ -537,49 +532,49 @@ public:
         vboxLayout1->addItem(spacerItem2);
 
 
-        gridLayout5->addLayout(vboxLayout1, 0, 2, 1, 1);
+        gridLayout_4->addLayout(vboxLayout1, 0, 2, 1, 1);
 
 
         gridLayout_3->addWidget(GBAreaManagement, 5, 0, 1, 2);
 
         GBField = new QGroupBox(CreateHypothesis);
         GBField->setObjectName(QString::fromUtf8("GBField"));
-        gridLayout6 = new QGridLayout(GBField);
+        gridLayout5 = new QGridLayout(GBField);
 #ifndef Q_OS_MAC
-        gridLayout6->setSpacing(6);
+        gridLayout5->setSpacing(6);
 #endif
 #ifndef Q_OS_MAC
-        gridLayout6->setContentsMargins(9, 9, 9, 9);
+        gridLayout5->setContentsMargins(9, 9, 9, 9);
 #endif
-        gridLayout6->setObjectName(QString::fromUtf8("gridLayout6"));
-        gridLayout7 = new QGridLayout();
+        gridLayout5->setObjectName(QString::fromUtf8("gridLayout5"));
+        gridLayout6 = new QGridLayout();
 #ifndef Q_OS_MAC
-        gridLayout7->setSpacing(6);
+        gridLayout6->setSpacing(6);
 #endif
 #ifndef Q_OS_MAC
-        gridLayout7->setContentsMargins(0, 0, 0, 0);
+        gridLayout6->setContentsMargins(0, 0, 0, 0);
 #endif
-        gridLayout7->setObjectName(QString::fromUtf8("gridLayout7"));
+        gridLayout6->setObjectName(QString::fromUtf8("gridLayout6"));
         RBFieldNo = new QRadioButton(GBField);
         RBFieldNo->setObjectName(QString::fromUtf8("RBFieldNo"));
         RBFieldNo->setChecked(true);
 
-        gridLayout7->addWidget(RBFieldNo, 0, 0, 1, 1);
+        gridLayout6->addWidget(RBFieldNo, 0, 0, 1, 1);
 
         RBFieldAll = new QRadioButton(GBField);
         RBFieldAll->setObjectName(QString::fromUtf8("RBFieldAll"));
         RBFieldAll->setChecked(false);
 
-        gridLayout7->addWidget(RBFieldAll, 0, 1, 1, 1);
+        gridLayout6->addWidget(RBFieldAll, 0, 1, 1, 1);
 
         RBFieldChosen = new QRadioButton(GBField);
         RBFieldChosen->setObjectName(QString::fromUtf8("RBFieldChosen"));
         RBFieldChosen->setChecked(false);
 
-        gridLayout7->addWidget(RBFieldChosen, 0, 2, 1, 1);
+        gridLayout6->addWidget(RBFieldChosen, 0, 2, 1, 1);
 
 
-        gridLayout6->addLayout(gridLayout7, 0, 0, 1, 1);
+        gridLayout5->addLayout(gridLayout6, 0, 0, 1, 1);
 
         TWField = new QTableWidget(GBField);
         if (TWField->columnCount() < 2)
@@ -590,7 +585,7 @@ public:
         TWField->setHorizontalHeaderItem(1, __qtablewidgetitem6);
         TWField->setObjectName(QString::fromUtf8("TWField"));
 
-        gridLayout6->addWidget(TWField, 1, 0, 1, 1);
+        gridLayout5->addWidget(TWField, 1, 0, 1, 1);
 
 
         gridLayout_3->addWidget(GBField, 6, 0, 1, 2);
@@ -665,37 +660,42 @@ public:
 
         GBButtons = new QGroupBox(CreateHypothesis);
         GBButtons->setObjectName(QString::fromUtf8("GBButtons"));
-        gridLayout8 = new QGridLayout(GBButtons);
+        gridLayout7 = new QGridLayout(GBButtons);
 #ifndef Q_OS_MAC
-        gridLayout8->setSpacing(6);
+        gridLayout7->setSpacing(6);
 #endif
 #ifndef Q_OS_MAC
-        gridLayout8->setContentsMargins(9, 9, 9, 9);
+        gridLayout7->setContentsMargins(9, 9, 9, 9);
 #endif
-        gridLayout8->setObjectName(QString::fromUtf8("gridLayout8"));
+        gridLayout7->setObjectName(QString::fromUtf8("gridLayout7"));
         buttonOk = new QPushButton(GBButtons);
         buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
 
-        gridLayout8->addWidget(buttonOk, 0, 0, 1, 1);
+        gridLayout7->addWidget(buttonOk, 0, 0, 1, 1);
 
         buttonApply = new QPushButton(GBButtons);
         buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
 
-        gridLayout8->addWidget(buttonApply, 0, 1, 1, 1);
+        gridLayout7->addWidget(buttonApply, 0, 1, 1, 1);
 
         buttonCancel = new QPushButton(GBButtons);
         buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
 
-        gridLayout8->addWidget(buttonCancel, 0, 2, 1, 1);
+        gridLayout7->addWidget(buttonCancel, 0, 2, 1, 1);
 
         buttonHelp = new QPushButton(GBButtons);
         buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
 
-        gridLayout8->addWidget(buttonHelp, 0, 3, 1, 1);
+        gridLayout7->addWidget(buttonHelp, 0, 3, 1, 1);
 
 
         gridLayout_3->addWidget(GBButtons, 10, 0, 1, 2);
 
+        Name = new QLabel(CreateHypothesis);
+        Name->setObjectName(QString::fromUtf8("Name"));
+
+        gridLayout_3->addWidget(Name, 0, 0, 1, 1);
+
         LEHypothesisName->raise();
         GBTypeAdaptation->raise();
         GBUniform->raise();
@@ -717,7 +717,6 @@ public:
     void retranslateUi(QDialog *CreateHypothesis)
     {
         CreateHypothesis->setWindowTitle(QApplication::translate("CreateHypothesis", "Create an hypothesis", 0, QApplication::UnicodeUTF8));
-        Name->setText(QApplication::translate("CreateHypothesis", "Name", 0, QApplication::UnicodeUTF8));
         GBTypeAdaptation->setTitle(QApplication::translate("CreateHypothesis", "Type of adaptation", 0, QApplication::UnicodeUTF8));
         RBUniforme->setText(QApplication::translate("CreateHypothesis", "Uniform", 0, QApplication::UnicodeUTF8));
         RBChamp->setText(QApplication::translate("CreateHypothesis", "Driven by a field", 0, QApplication::UnicodeUTF8));
@@ -773,7 +772,7 @@ public:
         GBAdvancedOptions->setTitle(QApplication::translate("CreateHypothesis", "Advanced options", 0, QApplication::UnicodeUTF8));
         TLMinimalDiameter->setText(QApplication::translate("CreateHypothesis", "Minimal diameter", 0, QApplication::UnicodeUTF8));
         TLMaximalLevel->setText(QApplication::translate("CreateHypothesis", "Maximal level", 0, QApplication::UnicodeUTF8));
-        GBAdapInit->setTitle(QApplication::translate("CreateHypothesis", "Intialization of adaptation", 0, QApplication::UnicodeUTF8));
+        GBAdapInit->setTitle(QApplication::translate("CreateHypothesis", "Initialization of adaptation", 0, QApplication::UnicodeUTF8));
         RBAIN->setText(QApplication::translate("CreateHypothesis", "Nothing", 0, QApplication::UnicodeUTF8));
         RBAIR->setText(QApplication::translate("CreateHypothesis", "Refinement", 0, QApplication::UnicodeUTF8));
         RBAID->setText(QApplication::translate("CreateHypothesis", "Coarsening", 0, QApplication::UnicodeUTF8));
@@ -782,6 +781,7 @@ public:
         buttonApply->setText(QApplication::translate("CreateHypothesis", "Apply", 0, QApplication::UnicodeUTF8));
         buttonCancel->setText(QApplication::translate("CreateHypothesis", "Cancel", 0, QApplication::UnicodeUTF8));
         buttonHelp->setText(QApplication::translate("CreateHypothesis", "Help", 0, QApplication::UnicodeUTF8));
+        Name->setText(QApplication::translate("CreateHypothesis", "Name", 0, QApplication::UnicodeUTF8));
     } // retranslateUi
 
 };
index 8c7ec676681796fd03cf03ec7ee7ba4c1411aec2..686a25ab7de3592309abe79b30534e7d96816977 100644 (file)
    <bool>true</bool>
   </property>
   <layout class="QGridLayout" name="gridLayout_3">
-   <item row="0" column="0">
-    <widget class="QLabel" name="Name">
-     <property name="text">
-      <string>Name</string>
-     </property>
-    </widget>
-   </item>
    <item row="0" column="1">
     <widget class="QLineEdit" name="LEHypothesisName">
      <property name="minimumSize">
      <property name="title">
       <string>Zone management</string>
      </property>
-     <layout class="QGridLayout" name="gridLayout">
+     <layout class="QGridLayout" name="gridLayout_4">
       <item row="0" column="0">
        <widget class="QTableWidget" name="TWZone">
         <property name="minimumSize">
       <item row="2" column="0" colspan="2">
        <widget class="QGroupBox" name="GBAdapInit">
         <property name="title">
-         <string>Intialization of adaptation</string>
+         <string>Initialization of adaptation</string>
         </property>
         <layout class="QGridLayout" name="gridLayout_2">
          <item row="0" column="0">
      </layout>
     </widget>
    </item>
+   <item row="0" column="0">
+    <widget class="QLabel" name="Name">
+     <property name="text">
+      <string>Name</string>
+     </property>
+    </widget>
+   </item>
   </layout>
   <zorder>LEHypothesisName</zorder>
   <zorder>GBTypeAdaptation</zorder>
index 36fa710db1f7242f1ec757e35c5315dcbbb47788..c3e48c90a904343e4215aa63cbce30e38bdb473f 100644 (file)
@@ -1,10 +1,10 @@
 /********************************************************************************
-** Form generated from reading ui file 'CreateIteration.ui'
+** Form generated from reading UI file 'CreateIteration.ui'
 **
-** Created: Thu Sep 1 13:07:29 2011
-**      by: Qt User Interface Compiler version 4.2.1
+** Created: Wed Apr 11 11:35:39 2012
+**      by: Qt User Interface Compiler version 4.6.3
 **
-** WARNING! All changes made in this file will be lost when recompiling ui file!
+** WARNING! All changes made in this file will be lost when recompiling UI file!
 ********************************************************************************/
 
 #ifndef CREATEITERATION_H
@@ -17,6 +17,7 @@
 #include <QtGui/QComboBox>
 #include <QtGui/QGridLayout>
 #include <QtGui/QGroupBox>
+#include <QtGui/QHeaderView>
 #include <QtGui/QLabel>
 #include <QtGui/QLineEdit>
 #include <QtGui/QPushButton>
@@ -25,6 +26,8 @@
 #include <QtGui/QSpinBox>
 #include <QtGui/QWidget>
 
+QT_BEGIN_NAMESPACE
+
 class Ui_CreateIteration
 {
 public:
@@ -75,275 +78,287 @@ public:
 
     void setupUi(QWidget *CreateIteration)
     {
-    CreateIteration->setObjectName(QString::fromUtf8("CreateIteration"));
-    gridLayout = new QGridLayout(CreateIteration);
-    gridLayout->setSpacing(6);
-    gridLayout->setMargin(9);
-    gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
-    GBField = new QGroupBox(CreateIteration);
-    GBField->setObjectName(QString::fromUtf8("GBField"));
-    gridLayout1 = new QGridLayout(GBField);
-    gridLayout1->setSpacing(6);
-    gridLayout1->setMargin(9);
-    gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
-    LEFieldFile = new QLineEdit(GBField);
-    LEFieldFile->setObjectName(QString::fromUtf8("LEFieldFile"));
-    LEFieldFile->setMinimumSize(QSize(282, 21));
-
-    gridLayout1->addWidget(LEFieldFile, 0, 2, 1, 5);
+        if (CreateIteration->objectName().isEmpty())
+            CreateIteration->setObjectName(QString::fromUtf8("CreateIteration"));
+        CreateIteration->resize(610, 598);
+        gridLayout = new QGridLayout(CreateIteration);
+#ifndef Q_OS_MAC
+        gridLayout->setSpacing(6);
+#endif
+#ifndef Q_OS_MAC
+        gridLayout->setContentsMargins(9, 9, 9, 9);
+#endif
+        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
+        GBField = new QGroupBox(CreateIteration);
+        GBField->setObjectName(QString::fromUtf8("GBField"));
+        gridLayout1 = new QGridLayout(GBField);
+#ifndef Q_OS_MAC
+        gridLayout1->setSpacing(6);
+#endif
+#ifndef Q_OS_MAC
+        gridLayout1->setContentsMargins(9, 9, 9, 9);
+#endif
+        gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
+        LEFieldFile = new QLineEdit(GBField);
+        LEFieldFile->setObjectName(QString::fromUtf8("LEFieldFile"));
+        LEFieldFile->setMinimumSize(QSize(282, 21));
 
-    spacerItem = new QSpacerItem(138, 18, QSizePolicy::Minimum, QSizePolicy::Expanding);
+        gridLayout1->addWidget(LEFieldFile, 0, 2, 1, 5);
 
-    gridLayout1->addItem(spacerItem, 1, 3, 1, 4);
+        spacerItem = new QSpacerItem(138, 18, QSizePolicy::Minimum, QSizePolicy::Expanding);
 
-    RBChosen = new QRadioButton(GBField);
-    RBChosen->setObjectName(QString::fromUtf8("RBChosen"));
+        gridLayout1->addItem(spacerItem, 1, 3, 1, 4);
 
-    gridLayout1->addWidget(RBChosen, 2, 6, 1, 1);
+        RBChosen = new QRadioButton(GBField);
+        RBChosen->setObjectName(QString::fromUtf8("RBChosen"));
 
-    spacerItem1 = new QSpacerItem(255, 13, QSizePolicy::Expanding, QSizePolicy::Minimum);
+        gridLayout1->addWidget(RBChosen, 2, 6, 1, 1);
 
-    gridLayout1->addItem(spacerItem1, 4, 6, 1, 1);
+        spacerItem1 = new QSpacerItem(255, 13, QSizePolicy::Expanding, QSizePolicy::Minimum);
 
-    SpinBox_Rank = new QSpinBox(GBField);
-    SpinBox_Rank->setObjectName(QString::fromUtf8("SpinBox_Rank"));
-    SpinBox_Rank->setMaximum(1010000);
-    SpinBox_Rank->setMinimum(-1);
-    SpinBox_Rank->setValue(1);
+        gridLayout1->addItem(spacerItem1, 4, 6, 1, 1);
 
-    gridLayout1->addWidget(SpinBox_Rank, 4, 5, 1, 1);
+        SpinBox_Rank = new QSpinBox(GBField);
+        SpinBox_Rank->setObjectName(QString::fromUtf8("SpinBox_Rank"));
+        SpinBox_Rank->setMaximum(1010000);
+        SpinBox_Rank->setMinimum(-1);
+        SpinBox_Rank->setValue(1);
 
-    Rank = new QLabel(GBField);
-    Rank->setObjectName(QString::fromUtf8("Rank"));
+        gridLayout1->addWidget(SpinBox_Rank, 4, 5, 1, 1);
 
-    gridLayout1->addWidget(Rank, 4, 4, 1, 1);
+        Rank = new QLabel(GBField);
+        Rank->setObjectName(QString::fromUtf8("Rank"));
 
-    spacerItem2 = new QSpacerItem(40, 13, QSizePolicy::Fixed, QSizePolicy::Minimum);
+        gridLayout1->addWidget(Rank, 4, 4, 1, 1);
 
-    gridLayout1->addItem(spacerItem2, 4, 2, 1, 2);
+        spacerItem2 = new QSpacerItem(40, 13, QSizePolicy::Fixed, QSizePolicy::Minimum);
 
-    SpinBox_TimeStep = new QSpinBox(GBField);
-    SpinBox_TimeStep->setObjectName(QString::fromUtf8("SpinBox_TimeStep"));
-    SpinBox_TimeStep->setMaximum(100000);
-    SpinBox_TimeStep->setMinimum(-2);
-    SpinBox_TimeStep->setValue(-1);
+        gridLayout1->addItem(spacerItem2, 4, 2, 1, 2);
 
-    gridLayout1->addWidget(SpinBox_TimeStep, 4, 1, 1, 1);
+        SpinBox_TimeStep = new QSpinBox(GBField);
+        SpinBox_TimeStep->setObjectName(QString::fromUtf8("SpinBox_TimeStep"));
+        SpinBox_TimeStep->setMaximum(100000);
+        SpinBox_TimeStep->setMinimum(-2);
+        SpinBox_TimeStep->setValue(-1);
 
-    TimeStep = new QLabel(GBField);
-    TimeStep->setObjectName(QString::fromUtf8("TimeStep"));
+        gridLayout1->addWidget(SpinBox_TimeStep, 4, 1, 1, 1);
 
-    gridLayout1->addWidget(TimeStep, 4, 0, 1, 1);
+        TimeStep = new QLabel(GBField);
+        TimeStep->setObjectName(QString::fromUtf8("TimeStep"));
 
-    spacerItem3 = new QSpacerItem(138, 28, QSizePolicy::Minimum, QSizePolicy::Expanding);
+        gridLayout1->addWidget(TimeStep, 4, 0, 1, 1);
 
-    gridLayout1->addItem(spacerItem3, 3, 0, 1, 4);
+        spacerItem3 = new QSpacerItem(138, 28, QSizePolicy::Minimum, QSizePolicy::Expanding);
 
-    RBLast = new QRadioButton(GBField);
-    RBLast->setObjectName(QString::fromUtf8("RBLast"));
+        gridLayout1->addItem(spacerItem3, 3, 0, 1, 4);
 
-    gridLayout1->addWidget(RBLast, 2, 3, 1, 3);
+        RBLast = new QRadioButton(GBField);
+        RBLast->setObjectName(QString::fromUtf8("RBLast"));
 
-    RBNo = new QRadioButton(GBField);
-    RBNo->setObjectName(QString::fromUtf8("RBNo"));
-    RBNo->setCheckable(true);
-    RBNo->setChecked(true);
+        gridLayout1->addWidget(RBLast, 2, 3, 1, 3);
 
-    gridLayout1->addWidget(RBNo, 2, 0, 1, 3);
+        RBNo = new QRadioButton(GBField);
+        RBNo->setObjectName(QString::fromUtf8("RBNo"));
+        RBNo->setCheckable(true);
+        RBNo->setChecked(true);
 
-    PushFieldFile = new QPushButton(GBField);
-    PushFieldFile->setObjectName(QString::fromUtf8("PushFieldFile"));
+        gridLayout1->addWidget(RBNo, 2, 0, 1, 3);
 
-    gridLayout1->addWidget(PushFieldFile, 0, 1, 1, 1);
+        PushFieldFile = new QPushButton(GBField);
+        PushFieldFile->setObjectName(QString::fromUtf8("PushFieldFile"));
 
-    FieldFile = new QLabel(GBField);
-    FieldFile->setObjectName(QString::fromUtf8("FieldFile"));
+        gridLayout1->addWidget(PushFieldFile, 0, 1, 1, 1);
 
-    gridLayout1->addWidget(FieldFile, 0, 0, 1, 1);
+        FieldFile = new QLabel(GBField);
+        FieldFile->setObjectName(QString::fromUtf8("FieldFile"));
 
+        gridLayout1->addWidget(FieldFile, 0, 0, 1, 1);
 
-    gridLayout->addWidget(GBField, 6, 0, 1, 4);
 
-    Iteration_Name = new QLabel(CreateIteration);
-    Iteration_Name->setObjectName(QString::fromUtf8("Iteration_Name"));
+        gridLayout->addWidget(GBField, 6, 0, 1, 4);
 
-    gridLayout->addWidget(Iteration_Name, 0, 0, 1, 2);
+        Iteration_Name = new QLabel(CreateIteration);
+        Iteration_Name->setObjectName(QString::fromUtf8("Iteration_Name"));
 
-    LEIterationName = new QLineEdit(CreateIteration);
-    LEIterationName->setObjectName(QString::fromUtf8("LEIterationName"));
-    LEIterationName->setMinimumSize(QSize(290, 21));
-    LEIterationName->setMaxLength(200);
+        gridLayout->addWidget(Iteration_Name, 0, 0, 1, 2);
 
-    gridLayout->addWidget(LEIterationName, 0, 2, 1, 2);
+        LEIterationName = new QLineEdit(CreateIteration);
+        LEIterationName->setObjectName(QString::fromUtf8("LEIterationName"));
+        LEIterationName->setMinimumSize(QSize(290, 21));
+        LEIterationName->setMaxLength(200);
 
-    Iter_Parent = new QLabel(CreateIteration);
-    Iter_Parent->setObjectName(QString::fromUtf8("Iter_Parent"));
+        gridLayout->addWidget(LEIterationName, 0, 2, 1, 2);
 
-    gridLayout->addWidget(Iter_Parent, 1, 0, 1, 1);
+        Iter_Parent = new QLabel(CreateIteration);
+        Iter_Parent->setObjectName(QString::fromUtf8("Iter_Parent"));
 
-    spacerItem4 = new QSpacerItem(20, 24, QSizePolicy::Minimum, QSizePolicy::Expanding);
+        gridLayout->addWidget(Iter_Parent, 1, 0, 1, 1);
 
-    gridLayout->addItem(spacerItem4, 1, 1, 1, 1);
+        spacerItem4 = new QSpacerItem(20, 24, QSizePolicy::Minimum, QSizePolicy::Expanding);
 
-    PBIterParent = new QPushButton(CreateIteration);
-    PBIterParent->setObjectName(QString::fromUtf8("PBIterParent"));
-    PBIterParent->setEnabled(true);
-    PBIterParent->setMaximumSize(QSize(50, 27));
+        gridLayout->addItem(spacerItem4, 1, 1, 1, 1);
 
-    gridLayout->addWidget(PBIterParent, 1, 2, 1, 1);
+        PBIterParent = new QPushButton(CreateIteration);
+        PBIterParent->setObjectName(QString::fromUtf8("PBIterParent"));
+        PBIterParent->setEnabled(true);
+        PBIterParent->setMaximumSize(QSize(50, 27));
 
-    LEIterationParentName = new QLineEdit(CreateIteration);
-    LEIterationParentName->setObjectName(QString::fromUtf8("LEIterationParentName"));
-    LEIterationParentName->setMinimumSize(QSize(0, 21));
-    LEIterationParentName->setMaxLength(200);
-    LEIterationParentName->setReadOnly(true);
+        gridLayout->addWidget(PBIterParent, 1, 2, 1, 1);
 
-    gridLayout->addWidget(LEIterationParentName, 1, 3, 1, 1);
+        LEIterationParentName = new QLineEdit(CreateIteration);
+        LEIterationParentName->setObjectName(QString::fromUtf8("LEIterationParentName"));
+        LEIterationParentName->setMinimumSize(QSize(0, 21));
+        LEIterationParentName->setMaxLength(200);
+        LEIterationParentName->setReadOnly(true);
 
-    Mesh_n = new QLabel(CreateIteration);
-    Mesh_n->setObjectName(QString::fromUtf8("Mesh_n"));
+        gridLayout->addWidget(LEIterationParentName, 1, 3, 1, 1);
 
-    gridLayout->addWidget(Mesh_n, 2, 0, 1, 1);
+        Mesh_n = new QLabel(CreateIteration);
+        Mesh_n->setObjectName(QString::fromUtf8("Mesh_n"));
 
-    spacerItem5 = new QSpacerItem(20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding);
+        gridLayout->addWidget(Mesh_n, 2, 0, 1, 1);
 
-    gridLayout->addItem(spacerItem5, 2, 1, 1, 1);
+        spacerItem5 = new QSpacerItem(20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding);
 
-    LEMeshName_n = new QLineEdit(CreateIteration);
-    LEMeshName_n->setObjectName(QString::fromUtf8("LEMeshName_n"));
-    LEMeshName_n->setMinimumSize(QSize(290, 21));
-    LEMeshName_n->setMaxLength(32);
-    LEMeshName_n->setReadOnly(true);
+        gridLayout->addItem(spacerItem5, 2, 1, 1, 1);
 
-    gridLayout->addWidget(LEMeshName_n, 2, 2, 1, 2);
+        LEMeshName_n = new QLineEdit(CreateIteration);
+        LEMeshName_n->setObjectName(QString::fromUtf8("LEMeshName_n"));
+        LEMeshName_n->setMinimumSize(QSize(290, 21));
+        LEMeshName_n->setMaxLength(32);
+        LEMeshName_n->setReadOnly(true);
 
-    spacerItem6 = new QSpacerItem(20, 22, QSizePolicy::Minimum, QSizePolicy::Expanding);
+        gridLayout->addWidget(LEMeshName_n, 2, 2, 1, 2);
 
-    gridLayout->addItem(spacerItem6, 3, 1, 1, 1);
+        spacerItem6 = new QSpacerItem(20, 22, QSizePolicy::Minimum, QSizePolicy::Expanding);
 
-    Mesh_np1 = new QLabel(CreateIteration);
-    Mesh_np1->setObjectName(QString::fromUtf8("Mesh_np1"));
+        gridLayout->addItem(spacerItem6, 3, 1, 1, 1);
 
-    gridLayout->addWidget(Mesh_np1, 4, 0, 1, 2);
+        Mesh_np1 = new QLabel(CreateIteration);
+        Mesh_np1->setObjectName(QString::fromUtf8("Mesh_np1"));
 
-    LEMeshName_np1 = new QLineEdit(CreateIteration);
-    LEMeshName_np1->setObjectName(QString::fromUtf8("LEMeshName_np1"));
-    LEMeshName_np1->setMinimumSize(QSize(290, 21));
-    LEMeshName_np1->setMaxLength(32);
+        gridLayout->addWidget(Mesh_np1, 4, 0, 1, 2);
 
-    gridLayout->addWidget(LEMeshName_np1, 4, 2, 1, 2);
+        LEMeshName_np1 = new QLineEdit(CreateIteration);
+        LEMeshName_np1->setObjectName(QString::fromUtf8("LEMeshName_np1"));
+        LEMeshName_np1->setMinimumSize(QSize(290, 21));
+        LEMeshName_np1->setMaxLength(32);
 
-    spacerItem7 = new QSpacerItem(20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding);
+        gridLayout->addWidget(LEMeshName_np1, 4, 2, 1, 2);
 
-    gridLayout->addItem(spacerItem7, 5, 1, 1, 1);
+        spacerItem7 = new QSpacerItem(20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding);
 
-    spacerItem8 = new QSpacerItem(20, 22, QSizePolicy::Minimum, QSizePolicy::Expanding);
+        gridLayout->addItem(spacerItem7, 5, 1, 1, 1);
 
-    gridLayout->addItem(spacerItem8, 7, 1, 1, 1);
+        spacerItem8 = new QSpacerItem(20, 22, QSizePolicy::Minimum, QSizePolicy::Expanding);
 
-    Hypothese = new QGroupBox(CreateIteration);
-    Hypothese->setObjectName(QString::fromUtf8("Hypothese"));
-    gridLayout2 = new QGridLayout(Hypothese);
-    gridLayout2->setSpacing(6);
-    gridLayout2->setMargin(9);
-    gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
-    CBHypothese = new QComboBox(Hypothese);
-    CBHypothese->setObjectName(QString::fromUtf8("CBHypothese"));
-    CBHypothese->setSizeAdjustPolicy(QComboBox::AdjustToContents);
+        gridLayout->addItem(spacerItem8, 7, 1, 1, 1);
 
-    gridLayout2->addWidget(CBHypothese, 0, 0, 1, 1);
+        Hypothese = new QGroupBox(CreateIteration);
+        Hypothese->setObjectName(QString::fromUtf8("Hypothese"));
+        gridLayout2 = new QGridLayout(Hypothese);
+#ifndef Q_OS_MAC
+        gridLayout2->setSpacing(6);
+#endif
+#ifndef Q_OS_MAC
+        gridLayout2->setContentsMargins(9, 9, 9, 9);
+#endif
+        gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
+        CBHypothese = new QComboBox(Hypothese);
+        CBHypothese->setObjectName(QString::fromUtf8("CBHypothese"));
+        CBHypothese->setSizeAdjustPolicy(QComboBox::AdjustToContents);
 
-    spacerItem9 = new QSpacerItem(40, 13, QSizePolicy::Fixed, QSizePolicy::Minimum);
+        gridLayout2->addWidget(CBHypothese, 0, 0, 1, 1);
 
-    gridLayout2->addItem(spacerItem9, 0, 1, 1, 1);
+        spacerItem9 = new QSpacerItem(40, 13, QSizePolicy::Fixed, QSizePolicy::Minimum);
 
-    PBHypoEdit = new QPushButton(Hypothese);
-    PBHypoEdit->setObjectName(QString::fromUtf8("PBHypoEdit"));
+        gridLayout2->addItem(spacerItem9, 0, 1, 1, 1);
 
-    gridLayout2->addWidget(PBHypoEdit, 0, 2, 1, 1);
+        PBHypoEdit = new QPushButton(Hypothese);
+        PBHypoEdit->setObjectName(QString::fromUtf8("PBHypoEdit"));
 
-    PBHypoNew = new QPushButton(Hypothese);
-    PBHypoNew->setObjectName(QString::fromUtf8("PBHypoNew"));
+        gridLayout2->addWidget(PBHypoEdit, 0, 2, 1, 1);
 
-    gridLayout2->addWidget(PBHypoNew, 0, 3, 1, 1);
+        PBHypoNew = new QPushButton(Hypothese);
+        PBHypoNew->setObjectName(QString::fromUtf8("PBHypoNew"));
 
+        gridLayout2->addWidget(PBHypoNew, 0, 3, 1, 1);
 
-    gridLayout->addWidget(Hypothese, 8, 0, 1, 4);
 
-    spacerItem10 = new QSpacerItem(20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding);
+        gridLayout->addWidget(Hypothese, 8, 0, 1, 4);
 
-    gridLayout->addItem(spacerItem10, 9, 0, 1, 1);
+        spacerItem10 = new QSpacerItem(20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding);
 
-    GroupButtons = new QGroupBox(CreateIteration);
-    GroupButtons->setObjectName(QString::fromUtf8("GroupButtons"));
-    gridLayout3 = new QGridLayout(GroupButtons);
-    gridLayout3->setSpacing(6);
-    gridLayout3->setMargin(9);
-    gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
-    buttonOk = new QPushButton(GroupButtons);
-    buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
-    buttonOk->setAutoDefault(false);
-    buttonOk->setDefault(false);
+        gridLayout->addItem(spacerItem10, 9, 0, 1, 1);
 
-    gridLayout3->addWidget(buttonOk, 0, 0, 1, 1);
+        GroupButtons = new QGroupBox(CreateIteration);
+        GroupButtons->setObjectName(QString::fromUtf8("GroupButtons"));
+        gridLayout3 = new QGridLayout(GroupButtons);
+#ifndef Q_OS_MAC
+        gridLayout3->setSpacing(6);
+#endif
+#ifndef Q_OS_MAC
+        gridLayout3->setContentsMargins(9, 9, 9, 9);
+#endif
+        gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
+        buttonOk = new QPushButton(GroupButtons);
+        buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
+        buttonOk->setAutoDefault(false);
+        buttonOk->setDefault(false);
 
-    buttonApply = new QPushButton(GroupButtons);
-    buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
+        gridLayout3->addWidget(buttonOk, 0, 0, 1, 1);
 
-    gridLayout3->addWidget(buttonApply, 0, 1, 1, 1);
+        buttonApply = new QPushButton(GroupButtons);
+        buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
 
-    buttonCancel = new QPushButton(GroupButtons);
-    buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
+        gridLayout3->addWidget(buttonApply, 0, 1, 1, 1);
 
-    gridLayout3->addWidget(buttonCancel, 0, 2, 1, 1);
+        buttonCancel = new QPushButton(GroupButtons);
+        buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
 
-    buttonHelp = new QPushButton(GroupButtons);
-    buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
+        gridLayout3->addWidget(buttonCancel, 0, 2, 1, 1);
 
-    gridLayout3->addWidget(buttonHelp, 0, 3, 1, 1);
+        buttonHelp = new QPushButton(GroupButtons);
+        buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
 
+        gridLayout3->addWidget(buttonHelp, 0, 3, 1, 1);
 
-    gridLayout->addWidget(GroupButtons, 10, 0, 1, 4);
 
+        gridLayout->addWidget(GroupButtons, 10, 0, 1, 4);
 
-    retranslateUi(CreateIteration);
 
-    QSize size(610, 598);
-    size = size.expandedTo(CreateIteration->minimumSizeHint());
-    CreateIteration->resize(size);
+        retranslateUi(CreateIteration);
 
+        CBHypothese->setCurrentIndex(-1);
 
-    CBHypothese->setCurrentIndex(-1);
 
-
-    QMetaObject::connectSlotsByName(CreateIteration);
+        QMetaObject::connectSlotsByName(CreateIteration);
     } // setupUi
 
     void retranslateUi(QWidget *CreateIteration)
     {
-    CreateIteration->setWindowTitle(QApplication::translate("CreateIteration", "Create an iteration", 0, QApplication::UnicodeUTF8));
-    GBField->setTitle(QApplication::translate("CreateIteration", "Field information", 0, QApplication::UnicodeUTF8));
-    RBChosen->setText(QApplication::translate("CreateIteration", "Chosen time step", 0, QApplication::UnicodeUTF8));
-    Rank->setText(QApplication::translate("CreateIteration", "Rank", 0, QApplication::UnicodeUTF8));
-    TimeStep->setText(QApplication::translate("CreateIteration", "Time step", 0, QApplication::UnicodeUTF8));
-    RBLast->setText(QApplication::translate("CreateIteration", "Last time step", 0, QApplication::UnicodeUTF8));
-    RBNo->setText(QApplication::translate("CreateIteration", "No time step", 0, QApplication::UnicodeUTF8));
-    PushFieldFile->setText(QString());
-    FieldFile->setText(QApplication::translate("CreateIteration", "Field file", 0, QApplication::UnicodeUTF8));
-    Iteration_Name->setText(QApplication::translate("CreateIteration", "Iteration Name", 0, QApplication::UnicodeUTF8));
-    Iter_Parent->setText(QApplication::translate("CreateIteration", "Previous iteration", 0, QApplication::UnicodeUTF8));
-    PBIterParent->setText(QString());
-    Mesh_n->setText(QApplication::translate("CreateIteration", "Mesh n", 0, QApplication::UnicodeUTF8));
-    Mesh_np1->setText(QApplication::translate("CreateIteration", "Mesh n+1", 0, QApplication::UnicodeUTF8));
-    Hypothese->setTitle(QApplication::translate("CreateIteration", "Hypothesis", 0, QApplication::UnicodeUTF8));
-    PBHypoEdit->setText(QApplication::translate("CreateIteration", "Edit", 0, QApplication::UnicodeUTF8));
-    PBHypoNew->setText(QApplication::translate("CreateIteration", "New", 0, QApplication::UnicodeUTF8));
-    GroupButtons->setTitle(QString());
-    buttonOk->setText(QApplication::translate("CreateIteration", "OK", 0, QApplication::UnicodeUTF8));
-    buttonApply->setText(QApplication::translate("CreateIteration", "Apply", 0, QApplication::UnicodeUTF8));
-    buttonCancel->setText(QApplication::translate("CreateIteration", "Cancel", 0, QApplication::UnicodeUTF8));
-    buttonHelp->setText(QApplication::translate("CreateIteration", "Help", 0, QApplication::UnicodeUTF8));
-    Q_UNUSED(CreateIteration);
+        CreateIteration->setWindowTitle(QApplication::translate("CreateIteration", "Create an iteration", 0, QApplication::UnicodeUTF8));
+        GBField->setTitle(QApplication::translate("CreateIteration", "Field information", 0, QApplication::UnicodeUTF8));
+        RBChosen->setText(QApplication::translate("CreateIteration", "Chosen time step", 0, QApplication::UnicodeUTF8));
+        Rank->setText(QApplication::translate("CreateIteration", "Rank", 0, QApplication::UnicodeUTF8));
+        TimeStep->setText(QApplication::translate("CreateIteration", "Time step", 0, QApplication::UnicodeUTF8));
+        RBLast->setText(QApplication::translate("CreateIteration", "Last time step", 0, QApplication::UnicodeUTF8));
+        RBNo->setText(QApplication::translate("CreateIteration", "No time step", 0, QApplication::UnicodeUTF8));
+        PushFieldFile->setText(QString());
+        FieldFile->setText(QApplication::translate("CreateIteration", "Field file", 0, QApplication::UnicodeUTF8));
+        Iteration_Name->setText(QApplication::translate("CreateIteration", "Iteration Name", 0, QApplication::UnicodeUTF8));
+        Iter_Parent->setText(QApplication::translate("CreateIteration", "Previous iteration", 0, QApplication::UnicodeUTF8));
+        PBIterParent->setText(QString());
+        Mesh_n->setText(QApplication::translate("CreateIteration", "Mesh n", 0, QApplication::UnicodeUTF8));
+        Mesh_np1->setText(QApplication::translate("CreateIteration", "Mesh n+1", 0, QApplication::UnicodeUTF8));
+        Hypothese->setTitle(QApplication::translate("CreateIteration", "Hypothesis", 0, QApplication::UnicodeUTF8));
+        PBHypoEdit->setText(QApplication::translate("CreateIteration", "Edit", 0, QApplication::UnicodeUTF8));
+        PBHypoNew->setText(QApplication::translate("CreateIteration", "New", 0, QApplication::UnicodeUTF8));
+        GroupButtons->setTitle(QString());
+        buttonOk->setText(QApplication::translate("CreateIteration", "OK", 0, QApplication::UnicodeUTF8));
+        buttonApply->setText(QApplication::translate("CreateIteration", "Apply", 0, QApplication::UnicodeUTF8));
+        buttonCancel->setText(QApplication::translate("CreateIteration", "Cancel", 0, QApplication::UnicodeUTF8));
+        buttonHelp->setText(QApplication::translate("CreateIteration", "Help", 0, QApplication::UnicodeUTF8));
     } // retranslateUi
 
 };
@@ -352,4 +367,6 @@ namespace Ui {
     class CreateIteration: public Ui_CreateIteration {};
 } // namespace Ui
 
+QT_END_NAMESPACE
+
 #endif // CREATEITERATION_H
index eaa4dde3d236629ed1c0d695c8c4982a830e88dc..aa243a99089aa49f560b1f7e714b8534041a2e09 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index d8258f95f376dba365ade81e3394d0d8d3798ec5..6db12449d7d9074ff05acad1fdb8257177293ef9 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 5007818f912da6719137784c2444911048150406..91e4721048ecc52caffce95e60f5ca4d44b351ba 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 0f802794108088440209efc9a2ad7bd1874a9e18..f202cadb49a1f65c4ab21bea5000c4819202b010 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index cbf3d5a5b4b740dc88f78af73f6ffed2c029ab1b..5863f16ab71461cfb447c8b32bfc50b114fb5b1b 100644 (file)
     </message>
     <message>
         <source>HOM_SELECT_OBJECT_1</source>
-        <translation>Selectionner un objet.</translation>
+        <translation>Sélectionner un objet.</translation>
     </message>
     <message>
         <source>HOM_SELECT_OBJECT_2</source>
-        <translation>Selectionner un seul objet.</translation>
+        <translation>Sélectionner un seul objet.</translation>
     </message>
     <message>
         <source>HOM_SELECT_OBJECT_3</source>
-        <translation>Selectionner un objet de type %1.</translation>
+        <translation>Sélectionner un objet de type %1.</translation>
     </message>
     <message>
         <source>HOM_SELECT_FILE_1</source>
-        <translation>Selectionner un fichier.</translation>
+        <translation>Sélectionner un fichier.</translation>
     </message>
     <message>
         <source>HOM_SELECT_FILE_2</source>
-        <translation>Selectionner un seul fichier.</translation>
+        <translation>Sélectionner un seul fichier.</translation>
     </message>
     <message>
         <source>HOM_MED_FILE_1</source>
     </message>
     <message>
         <source>HOM_SELECT_STUDY</source>
-        <translation>Selectionner une Ã©tude avec un fichier MED associé\n ou sélectionner un fichier MED.</translation>
+        <translation>Sélectionner une Ã©tude avec un fichier MED associé\n ou sélectionner un fichier MED.</translation>
     </message>
     <message>
         <source>Create a case</source>
     </message>
     <message>
         <source>HOM_ITER_FIELD_FILE</source>
-        <translation>Avec cette hypothese, il faut fournir le fichier du champ.</translation>
+        <translation>Avec cette hypothèse, il faut fournir le fichier du champ.</translation>
     </message>
     <message>
         <source>HOM_ITER_STARTING_POINT_0</source>
index 2c682df34bd21bc017eb3f2fe056be79d08705d0..1858afed932773fe21c2637e82914ef1303c2ff3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 306cc36275746ea9312434d588edc3559e9b5cdd..f5fe6d3bc15f843f9c3e1479841b8da1283ef1bc 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index cc2b25614cf0bf8be0035fa7e6ad36ec0b189faf..a1b64618093ec62be7681d1b89770f68e7a3684a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 0d6034764c02bc12bbe1f0afbb44ce6cf818c230..925e6978c51eba3d06e4f45aa284b2ab33b452f3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 26e46f5ef3d882d76e27a5e288ddc31f69e6ae01..7c0c22b851efe724aa42a10ad9de740e9e79a806 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index a96fd9ae747e8a827dbe4d7dbb44d6028f50511f..fde36eff27e66e3f61f38bf7227af409f36c30c3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index f8fc44f5864c57217ba014d8b2e5d4a44555455d..dc4b0b43ccbe506c0e173d5591899a249282903e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 6934339a0faa7b5708df38fd7501cc9c9a116f3d..2aaa85a1b473795ae7845737e8532387ad80281b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index bb6ce4707e56d149754020c8afd7ce5f4ca8333c..34c66065e759c20c0e05aa14a12dad04dc6e142e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 0d8eb5d0fd855c6e567ceda8b9d5c8d7223b68a3..bffc7df57f0ef14e48c2870c816b83f9e04295cc 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index f4f900497630c771be670fd5e6e828060ff8bde7..a1271157b665b1152243a2243d9cbdaf726b38d1 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 4f1b56e21a7a4fc22b484460be4e56a3270e3848..fc3b05c572e2467c69af03f4e15d5f2cc24edbc4 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 55a6adce6aab2b8c5b3e1ca7b315cec19ba47786..bb5e9bdd2ea45961c4b42157a8d02e361ffd1ef4 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 12db47827b367c095f3a1de89c954c06b68aa048..53ee66294ec4370cc763824abf3f76f71c35f1a5 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 4a69234f77cb6231d4481db476af68f66b4a6ef7..321ddd442a5f779a3b2f2b3210a5f781492cd482 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 067d31b24a086560812ac56c348aec01b009d56b..86c71d9ef5c1da923b937b7e46a5f0957c8ecc60 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 825a6ae1b16ea365d4fa976e0d65cb7fab293f82..e1705be111e219a1353e8cdc69788daf0be2e6e5 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 5526fde66110df1405ad2d18eb6f2db35f297e8d..bf91e6021877b9f84a14760b1da549610ea9816a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index af81d10c56daa7901e0c3bb1d5eb066669023c6f..7e027564f8a303120e1921a2865257d4603aeb81 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 26b4a420c74ee56c4ba35a168261fd2b90f5a193..66b453e9273b86b01aa84bb9b027b96df5cfbca3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index c7b20c7874f33e1e07c004816280cf964afc604b..c9ce082631919e5bcbe92900187bde269dee9d6c 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 199d5460e54d3bb60dabf13ff48000c99c04a737..0045f9be85f0e9bde916df175b69ad0940495aa1 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index e19c535826fb20ccdecbc03bad7357f705840d5f..60fcd2887ae7abe727d01318cf5e574062cb06d2 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index e7867d6c89f7ac24b1b994f69e39f92c221a0f66..d399466fb805af1ae3d72a3a9c82a66dd5062463 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 9ce5fbe65bf5b4561c0de90368535afd74379a3e..d6e36501a3ef8f6131952fce36532d6f26a4b8d3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 872ae12952637673afb98ebd99f7491c1ef88269..38a9d024931e0154629f0b71afc79f425c28d904 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index e9212f09855aafe287c3fe8cff8bede729d1f830..ef9c11b30b34986b58c984b4a8882b69a2df5447 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index bfa5e034b124978db83fa59b56771af9bcee6107..a6368637a7a6db6b98091531a12c2a330a5193e6 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 1097ce5f932dcc5fab2303973b0635f5e2c04141..f224fa840c09b854a46c64ad2cf29d69a2505f9b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 125175f508442587ded782f0295ee2aaf469542f..691c0aa5a557254eaf7fde50920ba6831ddd325e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index da4641fc32fd15667d416321eeb7286c2dac7dec..526169759cd88fa27a4111ff7171824150e801c0 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 85b3b3ed6e659b9d3daacd38d194bfc90d2c7cf6..6febcd143829dc815b78cc7d531589cca50f024e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 85be810698c7de50243b40442cd8fe9e1e6f77dd..8bc9f8c8d3b9375a52220230584188ebab36668a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 6cb5587518ce832bd2f4fa5776497becc547e4f9..c483fe57dbd0ac6177cfa5192916671dea1e5e27 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index a71a04fd4eb9a62ca09274983b8ef226b464a61d..c048c9f46683c0a6866efa4714222702fc3cec45 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 92586a7f0a03c4de92196622df2a80980310b2c6..7d75ff308a95aeca18a7ed1ca4d9d43bc1b062df 100755 (executable)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 79f7f91d76c2822dbffe406c6ad23cd8cb65a905..3c7a2007a844da9bdb57baf0fa190c5c8c1aacb4 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 8e8dee43e8752ec7a5c746c7be6aa027d19cfd18..9415aa68d141f8176c5f2c7846ecac788cba3646 100755 (executable)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index c52783f2307849e075145e75eb22d0ab4b930c50..4f646768939bfbbb73b3b35d49e8f0d2288e3746 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 879d30ca85efc7c2d9b837d36bd369c43b24e4f0..dd84483bd0c9bbf43db762c0187374461385dc49 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index e0a59602403cb6cd29e7ac0be96ece586e8020a6..ea7649a3866e2121f8f652694d2f3cd21c1479ad 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 9b8851a6152cfa7c30caffee5ae679f73c1c636f..a913cf92b39681d6fa52aec3475f57e3e931edd0 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index d7df0313ca605fa5bebb9f87f9bdb3e9eef05bfe..859032740583de915e1a674fe620d587ff54d068 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 0181a65a0956f4d9adeb9f99b44d8ee70ed8a6dc..1dbab43d98585999d999ad4171e2a5446b0ba2d1 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index ffefd418a47f3dc325c8725ea070ad7baf330531..63526668ccbdc5b8cace5c5126074905b8aca4da 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index ee484af9dc1d8fad03730f2b824b305ce2014ddc..8aab75c352fb6c724f0553d693f2338228b1709e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 7b28fec0894006e33d77eb1bdce11f90e9ee3696..e6bac47dd8d75266e1be0c38982702d87835106a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index c9639711f342843b08acc6f76ef7ef5883f0ffeb..c71252bb027294d77aee9c7d2fff5e15d2f608fa 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 930c13d45cf1aee66e7a2ed9d8f58f01cd3fc997..d8e9f312d7e8e92a3e2d3ec5147cb1e6e8588a40 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index ebc23e679824772b98644a6e71e00f024f5edd2c..9b1125e4d99241880750c80a85ea1881606a1e98 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index f20bdfdcebc0587d9f1b4952f434244aa724bafb..05011893c0fbcb43d20fa5368e6f977fd68a85bf 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index e891999f7038198faae645d8c07c461c0a1eee59..3c137dafef20fa1521a9f87df892e4814463e002 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 20521f76d4e315ef31d7a32af822e1aa23c30c10..1ae4a823ad35e0c23f1deece5401d19c832464e4 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 6c34dd87702b1f3fd2a7b5e96b8f9875a3e16678..94110abb253b5aa4c0d2f775aabd05e00527572b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
index 8e2b33df7aa2e088f6c9a8d195ed86138e96fa8f..7ea558eb22bd3d42a1ad459d6f1ded791a11359f 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index 2204a7b4f5d17273303514716f4c1c852efa66d1..d52be622f60d7028cac122c4d11307e1e31c4c73 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
index ef208398cc03fc1ee20c75ca6fcd7f4ba3b6f4d6..01a0776825db36ce2242c18ac0102844016c762d 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: iso-8859-1 -*-
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -22,7 +22,7 @@ Python script for HOMARD
 Copyright EDF-R&D 2010
 Test test_1
 """
-__revision__ = "V1.5"
+__revision__ = "V1.6"
 
 ######################################################################################
 Test_Name = "test_1"
@@ -50,68 +50,84 @@ def homard_exec(theStudy):
 Python script for HOMARD
 Copyright EDF-R&D 2010
   """
-  homard.SetCurrentStudy(theStudy)
-#
-# Creation of the zones
-# =====================
-# Creation of the box Zone_1
-  Zone_1 = homard.CreateZoneBox('Zone_1', -0.01, 1.01, -0.01, 0.4, -0.01, 0.6)
+  error = 0
+#
+  while not error :
+  #
+    homard.SetCurrentStudy(theStudy)
+  #
+  # Creation of the zones
+  # =====================
+  # Creation of the box Zone_1
+    Zone_1 = homard.CreateZoneBox('Zone_1', -0.01, 1.01, -0.01, 0.4, -0.01, 0.6)
 
-# Creation of the sphere Zone_2
-  Zone_2 = homard.CreateZoneSphere('Zone_2', 0.5, 0.6, 0.7, 0.75)
-#
-# Creation of the hypotheses
-# ==========================
-# Creation of the hypothesis a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM
-  a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM = homard.CreateHypothesis('a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM')
-  a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM.SetAdapRefinUnRef(1, 1, 0)
-  a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM.SetField('RESU____ERRE_ELEM_SIGM__________')
-  a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM.SetUseComp(0)
-  a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM.AddComp('ERREST')
-  a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM.SetRefinThr(3, 10.1)
-  a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM.SetTypeFieldInterp(2)
-  a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM.AddFieldInterp('RESU____DEPL____________________')
-  a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM.AddFieldInterp('RESU____ERRE_ELEM_SIGM__________')
-# Creation of the hypothesis Zones_1_et_2
-  Zones_1_et_2 = homard.CreateHypothesis('Zones_1_et_2')
-  Zones_1_et_2.SetAdapRefinUnRef(0, 1, 0)
-  homard.AssociateHypoZone('Zones_1_et_2', 'Zone_1', 1)
-  homard.AssociateHypoZone('Zones_1_et_2', 'Zone_2', 1)
-#
-# Creation of the cases
-# =====================
-  # Creation of the case zzzz121b
-  Case_1 = homard.CreateCase('zzzz121b', 'MAILL', os.path.join(Rep_Test, Test_Name + '.00.med'))
-  Case_1.SetDirName(Rep_Test_Resu)
-  Case_1.SetConfType(1)
-#
-# Creation of the iterations
-# ==========================
-# Creation of the iteration I1
-  I1 = homard.CreateIteration('I1', Case_1.GetIter0Name() )
-  I1.SetMeshName('M1')
-  I1.SetMeshFile(os.path.join(Rep_Test_Resu, 'maill.01.med'))
-  I1.SetFieldFile(os.path.join(Rep_Test, Test_Name + '.00.med'))
-  I1.SetTimeStepRank(1, 1)
-  homard.AssociateIterHypo('I1', 'a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM')
-  result1 = I1.Compute(1)
+  # Creation of the sphere Zone_2
+    Zone_2 = homard.CreateZoneSphere('Zone_2', 0.5, 0.6, 0.7, 0.75)
+  #
+  # Creation of the hypotheses
+  # ==========================
+  # Creation of the hypothesis a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM
+    a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM = homard.CreateHypothesis('a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM')
+    a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM.SetAdapRefinUnRef(1, 1, 0)
+    a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM.SetField('RESU____ERRE_ELEM_SIGM__________')
+    a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM.SetUseComp(0)
+    a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM.AddComp('ERREST')
+    a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM.SetRefinThr(3, 10.1)
+    a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM.SetTypeFieldInterp(2)
+    a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM.AddFieldInterp('RESU____DEPL____________________')
+    a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM.AddFieldInterp('RESU____ERRE_ELEM_SIGM__________')
+  # Creation of the hypothesis Zones_1_et_2
+    Zones_1_et_2 = homard.CreateHypothesis('Zones_1_et_2')
+    Zones_1_et_2.SetAdapRefinUnRef(0, 1, 0)
+    homard.AssociateHypoZone('Zones_1_et_2', 'Zone_1', 1)
+    homard.AssociateHypoZone('Zones_1_et_2', 'Zone_2', 1)
+  #
+  # Creation of the cases
+  # =====================
+    # Creation of the case zzzz121b
+    Case_1 = homard.CreateCase('zzzz121b', 'MAILL', os.path.join(Rep_Test, Test_Name + '.00.med'))
+    Case_1.SetDirName(Rep_Test_Resu)
+    Case_1.SetConfType(1)
+  #
+  # Creation of the iterations
+  # ==========================
+  # Creation of the iteration I1
+    I1 = homard.CreateIteration('I1', Case_1.GetIter0Name() )
+    I1.SetMeshName('M1')
+    I1.SetMeshFile(os.path.join(Rep_Test_Resu, 'maill.01.med'))
+    I1.SetFieldFile(os.path.join(Rep_Test, Test_Name + '.00.med'))
+    I1.SetTimeStepRank(1, 1)
+    homard.AssociateIterHypo('I1', 'a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM')
+    error = I1.Compute(1)
+    if error :
+      error = 1
+      break
 
-# Creation of the iteration I2
-  I2 = homard.CreateIteration('I2', 'I1')
-  I2.SetMeshName('M2')
-  I2.SetMeshFile(os.path.join(Rep_Test_Resu, 'maill.02.med'))
-  I2.SetFieldFile(os.path.join(Rep_Test, Test_Name + '.01.med'))
-  I2.SetTimeStepRank(1, 1)
-  homard.AssociateIterHypo('I2', 'a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM')
-  result2 = I2.Compute(1)
+  # Creation of the iteration I2
+    I2 = homard.CreateIteration('I2', 'I1')
+    I2.SetMeshName('M2')
+    I2.SetMeshFile(os.path.join(Rep_Test_Resu, 'maill.02.med'))
+    I2.SetFieldFile(os.path.join(Rep_Test, Test_Name + '.01.med'))
+    I2.SetTimeStepRank(1, 1)
+    homard.AssociateIterHypo('I2', 'a10_1pc_de_mailles_a_raffiner_sur_ERRE_ELEM_SIGM')
+    error = I2.Compute(1)
+    if error :
+      error = 2
+      break
 
-# Creation of the iteration I3
-  I3 = homard.CreateIteration('I3', 'I2')
-  I3.SetMeshName('M3')
-  I3.SetMeshFile(os.path.join(Rep_Test_Resu, 'maill.03.med'))
-  homard.AssociateIterHypo('I3', 'Zones_1_et_2')
-  result3 = I3.Compute(1)
-  return result1*result2*result3
+  # Creation of the iteration I3
+    I3 = homard.CreateIteration('I3', 'I2')
+    I3.SetMeshName('M3')
+    I3.SetMeshFile(os.path.join(Rep_Test_Resu, 'maill.03.med'))
+    homard.AssociateIterHypo('I3', 'Zones_1_et_2')
+    error = I3.Compute(1)
+    if error :
+      error = 3
+      break
+  #
+    break
+  #
+    return error
 
 ######################################################################################
 
@@ -120,11 +136,11 @@ homard = salome.lcc.FindOrLoadComponent('FactoryServer', 'HOMARD')
 # Exec of HOMARD-SALOME
 #
 try :
-  result=homard_exec(salome.myStudy)
-  if (result != True):
-      raise Exception('Pb in homard_exec')
+  error_main = homard_exec(salome.myStudy)
+  if error_main :
+    raise Exception('Pb in homard_exec at iteration %d' %error_main )
 except :
-  raise Exception('Pb in homard_exec')
+  raise Exception('Pb in homard_exec at iteration %d' %error_main )
   sys.exit(1)
 #
 # Test of the result
index af64462eb6b915e8d85b74ee547bf689b378fbfa..60110999e3f946842d042cd86512658433118bda 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: iso-8859-1 -*-
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -22,7 +22,7 @@ Python script for HOMARD
 Copyright EDF-R&D 2010
 Test test_2
 """
-__revision__ = "V1.4"
+__revision__ = "V1.5"
 
 ######################################################################################
 Test_Name = "test_2"
@@ -50,57 +50,73 @@ def homard_exec(theStudy):
 Python script for HOMARD
 Copyright EDF-R&D 2010
   """
-  homard.SetCurrentStudy(theStudy)
-#
-# Creation of the boundaries
-# ==========================
-# Creation of the discrete boundary Boundary_1
-  Boundary_1 = homard.CreateBoundaryDi('internal_boundary', 'plaque', os.path.join(Rep_Test, Test_Name + '.fr.med'))
-#
-# Creation of the hypotheses
-# ==========================
-# Creation of the hypothesis Hypo_1
-  Hypo_1 = homard.CreateHypothesis('Hypo_1')
-  Hypo_1.SetAdapRefinUnRef(-1, 1, 0)
-  Hypo_1.AddGroup('EG')
-  Hypo_1.AddGroup('BANDE')
+  error = 0
+#
+  while not error :
+  #
+    homard.SetCurrentStudy(theStudy)
+  #
+  # Creation of the boundaries
+  # ==========================
+  # Creation of the discrete boundary Boundary_1
+    Boundary_1 = homard.CreateBoundaryDi('internal_boundary', 'plaque', os.path.join(Rep_Test, Test_Name + '.fr.med'))
+  #
+  # Creation of the hypotheses
+  # ==========================
+  # Creation of the hypothesis Hypo_1
+    Hypo_1 = homard.CreateHypothesis('Hypo_1')
+    Hypo_1.SetAdapRefinUnRef(-1, 1, 0)
+    Hypo_1.AddGroup('EG')
+    Hypo_1.AddGroup('BANDE')
 
-# Creation of the hypothesis Hypo_2
-  Hypo_2 = homard.CreateHypothesis('Hypo_2')
-  Hypo_2.SetAdapRefinUnRef(-1, 1, 0)
-  Hypo_2.AddGroup('M_D')
-#
-# Creation of the cases
-# =====================
-  # Creation of the case Case_1
-  Case_1 = homard.CreateCase('Case_1', 'PLAQUE_0', os.path.join(Rep_Test, Test_Name + '.00.med'))
-  Case_1.SetDirName(Rep_Test_Resu)
-  Case_1.SetConfType(1)
-  Case_1.AddBoundaryGroup('internal_boundary', '')
-#
-# Creation of the iterations
-# ==========================
-# Creation of the iteration Iter_1
-  Iter_1 = homard.CreateIteration('Iter_1', Case_1.GetIter0Name() )
-  Iter_1.SetMeshName('PLAQUE_1')
-  Iter_1.SetMeshFile(os.path.join(Rep_Test_Resu, 'maill.01.med'))
-  homard.AssociateIterHypo('Iter_1', 'Hypo_1')
-  result1 = Iter_1.Compute(1)
+  # Creation of the hypothesis Hypo_2
+    Hypo_2 = homard.CreateHypothesis('Hypo_2')
+    Hypo_2.SetAdapRefinUnRef(-1, 1, 0)
+    Hypo_2.AddGroup('M_D')
+  #
+  # Creation of the cases
+  # =====================
+    # Creation of the case Case_1
+    Case_1 = homard.CreateCase('Case_1', 'PLAQUE_0', os.path.join(Rep_Test, Test_Name + '.00.med'))
+    Case_1.SetDirName(Rep_Test_Resu)
+    Case_1.SetConfType(1)
+    Case_1.AddBoundaryGroup('internal_boundary', '')
+  #
+  # Creation of the iterations
+  # ==========================
+  # Creation of the iteration Iter_1
+    Iter_1 = homard.CreateIteration('Iter_1', Case_1.GetIter0Name() )
+    Iter_1.SetMeshName('PLAQUE_1')
+    Iter_1.SetMeshFile(os.path.join(Rep_Test_Resu, 'maill.01.med'))
+    homard.AssociateIterHypo('Iter_1', 'Hypo_1')
+    error = Iter_1.Compute(1)
+    if error :
+      error = 1
+      break
 
-# Creation of the iteration Iter_2
-  Iter_2 = homard.CreateIteration('Iter_2', 'Iter_1')
-  Iter_2.SetMeshName('PLAQUE_2')
-  Iter_2.SetMeshFile(os.path.join(Rep_Test_Resu, 'maill.02.med'))
-  homard.AssociateIterHypo('Iter_2', 'Hypo_1')
-  result2 = Iter_2.Compute(1)
+  # Creation of the iteration Iter_2
+    Iter_2 = homard.CreateIteration('Iter_2', 'Iter_1')
+    Iter_2.SetMeshName('PLAQUE_2')
+    Iter_2.SetMeshFile(os.path.join(Rep_Test_Resu, 'maill.02.med'))
+    homard.AssociateIterHypo('Iter_2', 'Hypo_1')
+    error = Iter_2.Compute(1)
+    if error :
+      error = 2
+      break
 
-# Creation of the iteration Iter_3
-  Iter_3 = homard.CreateIteration('Iter_3', 'Iter_2')
-  Iter_3.SetMeshName('PLAQUE_3')
-  Iter_3.SetMeshFile(os.path.join(Rep_Test_Resu, 'maill.03.med'))
-  homard.AssociateIterHypo('Iter_3', 'Hypo_2')
-  result3 = Iter_3.Compute(1)
-  return result1*result2*result3
+  # Creation of the iteration Iter_3
+    Iter_3 = homard.CreateIteration('Iter_3', 'Iter_2')
+    Iter_3.SetMeshName('PLAQUE_3')
+    Iter_3.SetMeshFile(os.path.join(Rep_Test_Resu, 'maill.03.med'))
+    homard.AssociateIterHypo('Iter_3', 'Hypo_2')
+    error = Iter_3.Compute(1)
+    if error :
+      error = 3
+      break
+  #
+    break
+  #
+    return error
 
 ######################################################################################
 
@@ -109,11 +125,11 @@ homard = salome.lcc.FindOrLoadComponent('FactoryServer', 'HOMARD')
 # Exec of HOMARD-SALOME
 #
 try :
-  result=homard_exec(salome.myStudy)
-  if (result != True):
-      raise Exception('Pb in homard_exec')
+  error_main = homard_exec(salome.myStudy)
+  if error_main :
+    raise Exception('Pb in homard_exec at iteration %d' %error_main )
 except :
-  raise Exception('Pb in homard_exec')
+  raise Exception('Pb in homard_exec at iteration %d' %error_main )
   sys.exit(1)
 #
 # Test of the result
index b75aa970258994a96c835b07c7ab5581287f2eba..5e7cdcc474e3798fed1567ddb68998a1196b3a8a 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: iso-8859-1 -*-
-# Copyright (C) 2011  CEA/DEN, EDF R&D
+# Copyright (C) 2011-2012  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -22,7 +22,7 @@ Python script for HOMARD
 Copyright EDF-R&D 2011
 Test test_3
 """
-__revision__ = "V1.2"
+__revision__ = "V1.3"
 
 ######################################################################################
 Test_Name = "test_3"
@@ -50,60 +50,72 @@ def homard_exec(theStudy):
 Python script for HOMARD
 Copyright EDF-R&D 2010
   """
-  homard.SetCurrentStudy(theStudy)
+  error = 0
+#
+  while not error :
+#
+    homard.SetCurrentStudy(theStudy)
 #
 # Creation of the boundaries
 # ==========================
 # Creation of the discrete boundary
-  Boundary_1 = homard.CreateBoundaryDi('courbes', 'COURBES', os.path.join(Rep_Test, Test_Name + '.fr.med'))
+    Boundary_1 = homard.CreateBoundaryDi('courbes', 'COURBES', os.path.join(Rep_Test, Test_Name + '.fr.med'))
 #
 # Creation of the external cylinder
-  Boundary_2 = homard.CreateBoundaryCylinder('cyl_ext', 50.0, 25., -25., 1., 0., 0., 100.)
+    Boundary_2 = homard.CreateBoundaryCylinder('cyl_ext', 50.0, 25., -25., 1., 0., 0., 100.)
 #
 # Creation of the internal cylinder
-  Boundary_3 = homard.CreateBoundaryCylinder('cyl_int', 50.0, 25., -25., 1., 0., 0., 50.)
+    Boundary_3 = homard.CreateBoundaryCylinder('cyl_int', 50.0, 25., -25., 1., 0., 0., 50.)
 #
 # Creation of the first sphere
-  Boundary_4 = homard.CreateBoundarySphere('sphere_1', 50.0, 25., -25., 100.)
+    Boundary_4 = homard.CreateBoundarySphere('sphere_1', 50.0, 25., -25., 100.)
 #
 # Creation of the second sphere
-  Boundary_5 = homard.CreateBoundarySphere('sphere_2', 450.0, 25., -25., 100.)
+    Boundary_5 = homard.CreateBoundarySphere('sphere_2', 450.0, 25., -25., 100.)
 #
 # Creation of the hypotheses
 # ==========================
 # Uniform refinement
-  Hypo = homard.CreateHypothesis('Hypo')
-  Hypo.SetAdapRefinUnRef(-1, 1, 0)
+    Hypo = homard.CreateHypothesis('Hypo')
+    Hypo.SetAdapRefinUnRef(-1, 1, 0)
 #
 # Creation of the cases
 # =====================
 # Creation of the case Case_1
-  Case_1 = homard.CreateCase('Case_1', 'MOYEU', os.path.join(Rep_Test, Test_Name + '.00.med'))
-  Case_1.SetDirName(Rep_Test_Resu)
-  Case_1.SetConfType(1)
-  Case_1.AddBoundaryGroup('courbes', '')
-  Case_1.AddBoundaryGroup('cyl_ext', 'EXT')
-  Case_1.AddBoundaryGroup('cyl_int', 'INT')
-  Case_1.AddBoundaryGroup('sphere_1', 'END_1')
-  Case_1.AddBoundaryGroup('sphere_2', 'END_2')
+    Case_1 = homard.CreateCase('Case_1', 'MOYEU', os.path.join(Rep_Test, Test_Name + '.00.med'))
+    Case_1.SetDirName(Rep_Test_Resu)
+    Case_1.SetConfType(1)
+    Case_1.AddBoundaryGroup('courbes', '')
+    Case_1.AddBoundaryGroup('cyl_ext', 'EXT')
+    Case_1.AddBoundaryGroup('cyl_int', 'INT')
+    Case_1.AddBoundaryGroup('sphere_1', 'END_1')
+    Case_1.AddBoundaryGroup('sphere_2', 'END_2')
 #
 # Creation of the iterations
 # ==========================
 # Creation of the iteration Iter_1
-  Iter_1 = homard.CreateIteration('Iter_1', Case_1.GetIter0Name() )
-  Iter_1.SetMeshName('MOYEU_1')
-  Iter_1.SetMeshFile(os.path.join(Rep_Test_Resu, 'maill.01.med'))
-  homard.AssociateIterHypo('Iter_1', 'Hypo')
-  result1 = Iter_1.Compute(1)
+    Iter_1 = homard.CreateIteration('Iter_1', Case_1.GetIter0Name() )
+    Iter_1.SetMeshName('MOYEU_1')
+    Iter_1.SetMeshFile(os.path.join(Rep_Test_Resu, 'maill.01.med'))
+    homard.AssociateIterHypo('Iter_1', 'Hypo')
+    error = Iter_1.Compute(1)
+    if error :
+      error = 1
+      break
 
 # Creation of the iteration Iter_2
-  Iter_2 = homard.CreateIteration('Iter_2', 'Iter_1')
-  Iter_2.SetMeshName('MOYEU_2')
-  Iter_2.SetMeshFile(os.path.join(Rep_Test_Resu, 'maill.02.med'))
-  homard.AssociateIterHypo('Iter_2', 'Hypo')
-  result2 = Iter_2.Compute(1)
-
-  return result1*result2
+    Iter_2 = homard.CreateIteration('Iter_2', 'Iter_1')
+    Iter_2.SetMeshName('MOYEU_2')
+    Iter_2.SetMeshFile(os.path.join(Rep_Test_Resu, 'maill.02.med'))
+    homard.AssociateIterHypo('Iter_2', 'Hypo')
+    error = Iter_2.Compute(1)
+    if error :
+      error = 2
+      break
+#
+    break
+#
+  return error
 
 ######################################################################################
 
@@ -112,11 +124,12 @@ homard = salome.lcc.FindOrLoadComponent('FactoryServer', 'HOMARD')
 # Exec of HOMARD-SALOME
 #
 try :
-  result=homard_exec(salome.myStudy)
-  if (result != True):
-      raise Exception('Pb in homard_exec')
+  error_main = homard_exec(salome.myStudy)
+  if error_main :
+    raise Exception('Pb in homard_exec at iteration %d' %error_main )
 except :
-  raise Exception('Pb in homard_exec')
+  if error_main :
+    raise Exception('Pb in homard_exec at iteration %d' %error_main )
   sys.exit(1)
 #
 # Test of the result