-// 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
-# 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
-# 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
-# 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
-# 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
-# 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
-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
-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
-# 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
-# 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
#!/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
#!/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
#!/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
#!/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
-# 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
# 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
-# 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
#!/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
#!/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
#!/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
#!/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
#!/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
+.. _gui_usage:
+
Mode d'emploi pour l'interface graphique
========================================
.. index:: single: cas
+.. _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.
Quelques illustrations de maillage adaptés
-==========================================
+""""""""""""""""""""""""""""""""""""""""""
+.. index:: single: illustration
+---------------------------------------------------------------+
+---------------------------------------------------------------+
| |
+---------------------------------------------------------------+
+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.
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-# 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
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)
$(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
<?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
<?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
<?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
-# 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
<!--
- 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
// 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
// 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
// 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
// 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
-// 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
-// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// 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
-# 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
/********************************************************************************
** 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!
{
public:
QGridLayout *gridLayout_3;
- QLabel *Name;
QLineEdit *LEHypothesisName;
QGroupBox *GBTypeAdaptation;
QHBoxLayout *hboxLayout;
QDoubleSpinBox *SpinBox_CAbs;
QRadioButton *RBCNo;
QGroupBox *GBAreaManagement;
- QGridLayout *gridLayout5;
+ QGridLayout *gridLayout_4;
QTableWidget *TWZone;
QSpacerItem *horizontalSpacer;
QVBoxLayout *vboxLayout1;
QPushButton *PBZoneDelete;
QSpacerItem *spacerItem2;
QGroupBox *GBField;
+ QGridLayout *gridLayout5;
QGridLayout *gridLayout6;
- QGridLayout *gridLayout7;
QRadioButton *RBFieldNo;
QRadioButton *RBFieldAll;
QRadioButton *RBFieldChosen;
QRadioButton *RBAIR;
QRadioButton *RBAID;
QGroupBox *GBButtons;
- QGridLayout *gridLayout8;
+ QGridLayout *gridLayout7;
QPushButton *buttonOk;
QPushButton *buttonApply;
QPushButton *buttonCancel;
QPushButton *buttonHelp;
+ QLabel *Name;
void setupUi(QDialog *CreateHypothesis)
{
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));
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);
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
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)
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);
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();
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));
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));
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
};
<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>
/********************************************************************************
-** 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
#include <QtGui/QComboBox>
#include <QtGui/QGridLayout>
#include <QtGui/QGroupBox>
+#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QLineEdit>
#include <QtGui/QPushButton>
#include <QtGui/QSpinBox>
#include <QtGui/QWidget>
+QT_BEGIN_NAMESPACE
+
class Ui_CreateIteration
{
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
};
class CreateIteration: public Ui_CreateIteration {};
} // namespace Ui
+QT_END_NAMESPACE
+
#endif // CREATEITERATION_H
-// 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
-// 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
-// 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
-// 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
</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>
-// 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
-// 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
-# 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-// 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
-# 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
-# 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
-# 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
-# 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
-# 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
-# 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
-// 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
-# 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
-# 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
# -*- 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
Copyright EDF-R&D 2010
Test test_1
"""
-__revision__ = "V1.5"
+__revision__ = "V1.6"
######################################################################################
Test_Name = "test_1"
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
######################################################################################
# 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
# -*- 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
Copyright EDF-R&D 2010
Test test_2
"""
-__revision__ = "V1.4"
+__revision__ = "V1.5"
######################################################################################
Test_Name = "test_2"
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
######################################################################################
# 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
# -*- 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
Copyright EDF-R&D 2011
Test test_3
"""
-__revision__ = "V1.2"
+__revision__ = "V1.3"
######################################################################################
Test_Name = "test_3"
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
######################################################################################
# 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