*/
//=============================================================================
HOMARD_Cas::HOMARD_Cas():
- _Name(""), _NomDir("/tmp"), _ConfType(1)
+ _Name(""), _NomDir("/tmp"), _ConfType(0)
{
MESSAGE("HOMARD_Cas");
}
//=============================================================================
void HOMARD_Cas::SetConfType( int Conftype )
{
-// VERIFICATION( (Conftype>=1) && (Conftype<=4) );
+// VERIFICATION( (Conftype>=-2) && (Conftype<=3) );
_ConfType = Conftype;
}
//=============================================================================
std::string saux ;
switch (ConfType)
{
+ case -2: //
+ {
+ saux = "NON_CONFORME_1_ARETE" ;
+ break;
+ }
case -1: //
{
- saux = "conforme_boites" ;
+ saux = "CONFORME_BOITES" ;
break;
}
- case 1: //
+ case 0: //
{
- saux = "conforme" ;
+ saux = "CONFORME" ;
break;
}
- case 2: //
+ case 1: //
{
- saux = "non_conforme_1_noeud" ;
+ saux = "NON_CONFORME" ;
break;
}
- case 3: //
+ case 2: //
{
- saux = "non_conforme_1_arete" ;
+ saux = "NON_CONFORME_1_NOEUD" ;
break;
}
- case 4: //
+ case 3: //
{
- saux = "non_conforme_indicateur" ;
+ saux = "NON_CONFORME_INDICATEUR" ;
break;
}
}
{
GBTypeNoConf->setVisible(0);
//
- _ConfType=1;
+ _ConfType=0;
//
adjustSize();
}
GBTypeNoConf->setVisible(1);
RB1NpM->setChecked(true);
//
- _ConfType=2;
+ _ConfType=1;
//
adjustSize();
}
void MonCreateCase::Set1NpA()
// ------------------------------------------------------------------------
{
- _ConfType=3;
+ _ConfType=1;
}
// ------------------------------------------------------------------------
void MonCreateCase::SetQuelconque()
// ------------------------------------------------------------------------
{
- _ConfType=4;
+ _ConfType=3;
}
// ------------------------------------------------------------------------
void MonCreateCase::SetBoundaryD()
PushFichier->setVisible(0);
int ConfType=aCase->GetConfType();
- if(ConfType==1)
+ if(ConfType==0)
{
RBConforme->setChecked(true);
GBTypeNoConf->setVisible(0);
RBNonConforme->setChecked(true);
GBTypeNoConf->setVisible(1);
if (ConfType==2) { RB1NpM->setChecked(true);};
- if (ConfType==3) { RB1NpA->setChecked(true);};
- if (ConfType==4) { RBQuelconque->setChecked(true);};
+ if (ConfType==1) { RB1NpA->setChecked(true);};
+ if (ConfType==3) { RBQuelconque->setChecked(true);};
RB1NpM->setEnabled(false);
RB1NpA->setEnabled(false);
RBQuelconque->setEnabled(false);
void HOMARD_Cas_i::SetConfType( CORBA::Long ConfType )
{
ASSERT( myHomardCas );
-// VERIFICATION( (ConfType>=1) && (ConfType<=4) );
+// VERIFICATION( (ConfType>=-2) && (ConfType<=3) );
myHomardCas->SetConfType( ConfType );
}
//=============================================================================
#
"""
Python script for HOMARD
-Copyright EDF-R&D 2010, 2015
Test test_1
"""
-__revision__ = "V2.5"
+__revision__ = "V2.6"
#========================================================================
Test_Name = "test_1"
+debug=False
n_iter_test_file = 3
#========================================================================
import os
Rep_Test = os.path.join(pathHomard, "share", "salome", "resources", "homard")
Rep_Test = os.path.normpath(Rep_Test)
sys.path.append(Rep_Test)
+from test_util import remove_dir
from test_util import test_results
# Repertoire des resultats
-dircase = tempfile.mkdtemp()
+if debug :
+ dircase = os.path.join("/tmp", Test_Name)
+ if ( os.path.isdir(dircase) ) :
+ remove_dir(dircase)
+ os.mkdir(dircase)
+else :
+ dircase = tempfile.mkdtemp()
# ==================================
salome.salome_init()
MeshFile = os.path.join(Rep_Test, Test_Name + '.00.med')
Case_test_1 = homard.CreateCase(CaseName, 'MAILL', MeshFile)
Case_test_1.SetDirName(dircase)
- Case_test_1.SetConfType(1)
#
# Creation of the iterations
# ==========================
# Test of the results
#
n_rep_test_file = n_iter_test_file
-test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file)
+destroy_dir = not debug
+test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file, destroy_dir)
#
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(1)
#
"""
Python script for HOMARD
-Copyright EDF-R&D 2010, 2014
Test test_11 associe au tutorial 1
"""
-__revision__ = "V2.2"
+__revision__ = "V2.3"
#========================================================================
Test_Name = "test_11"
+debug=False
n_iter_test_file = 3
#========================================================================
import os
Rep_Test = os.path.join(pathHomard, "share", "salome", "resources", "homard")
Rep_Test = os.path.normpath(Rep_Test)
sys.path.append(Rep_Test)
+from test_util import remove_dir
from test_util import test_results
# Repertoire des resultats
-dircase = tempfile.mkdtemp()
+if debug :
+ dircase = os.path.join("/tmp", Test_Name)
+ if ( os.path.isdir(dircase) ) :
+ remove_dir(dircase)
+ os.mkdir(dircase)
+else :
+ dircase = tempfile.mkdtemp()
# Repertoire des donnees du tutorial
data_dir = os.path.join(pathHomard, "share", "doc", "salome", "gui", "HOMARD", "fr", "_downloads")
data_dir = os.path.normpath(data_dir)
# ===
Case_1 = homard.CreateCase('Case_1', 'MAILL', data_dir+'/tutorial_1.00.med')
Case_1.SetDirName(dircase)
- Case_1.SetConfType(1)
#
# Iterations
# ==========
# Test of the results
#
n_rep_test_file = n_iter_test_file
-test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file)
+destroy_dir = not debug
+test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file, destroy_dir)
#
# ==================================
gzip_gunzip(data_dir, 1, 1)
#
"""
Python script for HOMARD
-Copyright EDF-R&D 2010, 2014
Test test_11 associe au tutorial 2
"""
-__revision__ = "V2.2"
+__revision__ = "V2.3"
#========================================================================
Test_Name = "test_12"
+debug=False
n_iter_test_file = 2
#========================================================================
import os
Rep_Test = os.path.join(pathHomard, "share", "salome", "resources", "homard")
Rep_Test = os.path.normpath(Rep_Test)
sys.path.append(Rep_Test)
+from test_util import remove_dir
from test_util import test_results
# Repertoire des resultats
-dircase = tempfile.mkdtemp()
+if debug :
+ dircase = os.path.join("/tmp", Test_Name)
+ if ( os.path.isdir(dircase) ) :
+ remove_dir(dircase)
+ os.mkdir(dircase)
+else :
+ dircase = tempfile.mkdtemp()
# Repertoire des donnees du tutorial
data_dir = os.path.join(pathHomard, "share", "doc", "salome", "gui", "HOMARD", "fr", "_downloads")
data_dir = os.path.normpath(data_dir)
# Test of the results
#
n_rep_test_file = n_iter_test_file
-test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file)
+destroy_dir = not debug
+test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file, destroy_dir)
#
# ==================================
gzip_gunzip(data_dir, 2, 1)
#
"""
Python script for HOMARD
-Copyright EDF-R&D 2010, 2014
Test test_11 associe au tutorial 3
"""
-__revision__ = "V2.2"
+__revision__ = "V2.3"
#========================================================================
Test_Name = "test_13"
+debug=False
n_iter_test_file = 2
#========================================================================
import os
Rep_Test = os.path.join(pathHomard, "share", "salome", "resources", "homard")
Rep_Test = os.path.normpath(Rep_Test)
sys.path.append(Rep_Test)
+from test_util import remove_dir
from test_util import test_results
# Repertoire des resultats
-dircase = tempfile.mkdtemp()
+if debug :
+ dircase = os.path.join("/tmp", Test_Name)
+ if ( os.path.isdir(dircase) ) :
+ remove_dir(dircase)
+ os.mkdir(dircase)
+else :
+ dircase = tempfile.mkdtemp()
# Repertoire des donnees du tutorial
data_dir = os.path.join(pathHomard, "share", "doc", "salome", "gui", "HOMARD", "fr", "_downloads")
data_dir = os.path.normpath(data_dir)
# Test of the results
#
n_rep_test_file = 3
-test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file)
+destroy_dir = not debug
+test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file, destroy_dir)
#
# ==================================
gzip_gunzip(data_dir, 3, 1)
#
"""
Python script for HOMARD
-Copyright EDF-R&D 2010, 2014
Test test_11 associe au tutorial 4
"""
-__revision__ = "V2.2"
+__revision__ = "V2.3"
#========================================================================
Test_Name = "test_14"
+debug=False
n_iter_test_file = 3
#========================================================================
import os
Rep_Test = os.path.join(pathHomard, "share", "salome", "resources", "homard")
Rep_Test = os.path.normpath(Rep_Test)
sys.path.append(Rep_Test)
+from test_util import remove_dir
from test_util import test_results
# Repertoire des resultats
-dircase = tempfile.mkdtemp()
+if debug :
+ dircase = os.path.join("/tmp", Test_Name)
+ if ( os.path.isdir(dircase) ) :
+ remove_dir(dircase)
+ os.mkdir(dircase)
+else :
+ dircase = tempfile.mkdtemp()
# Repertoire des donnees du tutorial
data_dir = os.path.join(pathHomard, "share", "doc", "salome", "gui", "HOMARD", "fr", "_downloads")
data_dir = os.path.normpath(data_dir)
# Test of the results
#
n_rep_test_file = n_iter_test_file
-test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file)
+destroy_dir = not debug
+test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file, destroy_dir)
#
# ==================================
gzip_gunzip(data_dir, 4, 1)
Maillage apres adaptation
COEUR_2D
- Date de creation : lundi 2 novembre 2015 a 9 h 11 mn 58 s
+ Date de creation : mardi 24 novembre 2015 a 9 h 33 mn 8 s
Dimension : 2
Degre : 1
C'est un maillage obtenu apres 2 adaptations.
************************************************************
* Segments *
************************************************************
- * Nombre total * 359 *
+ * Nombre total * 418 *
* . dont aretes isolees * 0 *
- * . dont aretes de bord de regions 2D * 240 *
- * . dont aretes internes aux faces/volumes * 119 *
+ * . dont aretes de bord de regions 2D * 300 *
+ * . dont aretes internes aux faces/volumes * 118 *
************************************************************
************************************************************
#
"""
Python script for HOMARD
-Copyright EDF-R&D 2010, 2014
Test test_11 associe au tutorial 5
"""
-__revision__ = "V2.2"
+__revision__ = "V2.3"
#========================================================================
Test_Name = "test_15"
+debug=False
n_iter_test_file = 2
#========================================================================
import os
Rep_Test = os.path.join(pathHomard, "share", "salome", "resources", "homard")
Rep_Test = os.path.normpath(Rep_Test)
sys.path.append(Rep_Test)
+sys.path.append(Rep_Test)
+from test_util import remove_dir
from test_util import test_results
# Repertoire des resultats
-dircase = tempfile.mkdtemp()
+if debug :
+ dircase = os.path.join("/tmp", Test_Name)
+ if ( os.path.isdir(dircase) ) :
+ remove_dir(dircase)
+ os.mkdir(dircase)
+else :
+ dircase = tempfile.mkdtemp()
# Repertoire des donnees du tutorial
data_dir = os.path.join(pathHomard, "share", "doc", "salome", "gui", "HOMARD", "fr", "_downloads")
data_dir = os.path.normpath(data_dir)
# ===
Case_5 = homard.CreateCase('Case_5', 'COEUR_2D', data_dir+'/tutorial_5.00.med')
Case_5.SetDirName(dircase)
- Case_5.SetConfType(3)
+ Case_5.SetConfType(1)
Case_5.AddBoundaryGroup('Boun_5_1', '')
#
# Iteration "Iter_5_1"
# Test of the results
#
n_rep_test_file = n_iter_test_file
-test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file)
+destroy_dir = not debug
+test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file, destroy_dir)
#
# ==================================
gzip_gunzip(data_dir, 5, 1)
#
"""
Python script for HOMARD
-Copyright EDF-R&D 2010, 2014
Test test_2
"""
-__revision__ = "V2.4"
+__revision__ = "V2.5"
#========================================================================
Test_Name = "test_2"
+debug=False
n_iter_test_file = 3
#========================================================================
import os
Rep_Test = os.path.join(pathHomard, "share", "salome", "resources", "homard")
Rep_Test = os.path.normpath(Rep_Test)
sys.path.append(Rep_Test)
+from test_util import remove_dir
from test_util import test_results
# Repertoire des resultats
-dircase = tempfile.mkdtemp()
+if debug :
+ dircase = os.path.join("/tmp", Test_Name)
+ if ( os.path.isdir(dircase) ) :
+ remove_dir(dircase)
+ os.mkdir(dircase)
+else :
+ dircase = tempfile.mkdtemp()
# ==================================
salome.salome_init()
MeshFile = os.path.join(Rep_Test, Test_Name + '.00.med')
Case_test_2 = homard.CreateCase(CaseName, 'PLAQUE_0', MeshFile)
Case_test_2.SetDirName(dircase)
- Case_test_2.SetConfType(1)
Case_test_2.AddBoundaryGroup('internal_boundary', '')
#
# Creation of the iterations
# Test of the results
#
n_rep_test_file = n_iter_test_file
-test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file, True)
+destroy_dir = not debug
+test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file, destroy_dir)
#
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(1)
#
"""
Python script for HOMARD
-Copyright EDF-R&D 2011, 2013
Test test_3
"""
-__revision__ = "V2.3"
+__revision__ = "V2.4"
#========================================================================
Test_Name = "test_3"
+debug=False
n_boucle = 2
n_iter_test_file = 2
#========================================================================
Rep_Test = os.path.join(pathHomard, "share", "salome", "resources", "homard")
Rep_Test = os.path.normpath(Rep_Test)
sys.path.append(Rep_Test)
+from test_util import remove_dir
from test_util import test_results
# Repertoire des resultats
-dircase = tempfile.mkdtemp()
+if debug :
+ dircase = os.path.join("/tmp", Test_Name)
+ if ( os.path.isdir(dircase) ) :
+ remove_dir(dircase)
+ os.mkdir(dircase)
+else :
+ dircase = tempfile.mkdtemp()
# ==================================
salome.salome_init()
MeshFile = os.path.join(Rep_Test, Test_Name + '.00.med')
Case_test_3 = homard.CreateCase(CaseName, 'MOYEU', MeshFile)
Case_test_3.SetDirName(dircase)
- Case_test_3.SetConfType(1)
Case_test_3.AddBoundaryGroup('courbes', '')
Case_test_3.AddBoundaryGroup('cyl_ext', 'EXT')
Case_test_3.AddBoundaryGroup('cyl_int', 'INT')
# Test of the results
#
n_rep_test_file = n_iter_test_file*n_boucle
-test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file, True)
+destroy_dir = not debug
+test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file, destroy_dir)
#
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(1)
#
"""
Python script for HOMARD
-Copyright EDF-R&D 2010, 2015
Test test_4
"""
__revision__ = "V1.0"
#========================================================================
Test_Name = "test_4"
+debug=False
n_iter_test_file = 3
DX = 600.
DY = 400.
Rep_Test = os.path.join(pathHomard, "share", "salome", "resources", "homard")
Rep_Test = os.path.normpath(Rep_Test)
sys.path.append(Rep_Test)
+from test_util import remove_dir
from test_util import test_results
# Repertoire des resultats
-dircase = tempfile.mkdtemp()
-#dircase = "/scratch/D68518/Salome/resu"
+if debug :
+ dircase = os.path.join("/tmp", Test_Name)
+ if ( os.path.isdir(dircase) ) :
+ remove_dir(dircase)
+ os.mkdir(dircase)
+else :
+ dircase = tempfile.mkdtemp()
# ==================================
salome.salome_init()
MeshFile = os.path.join(dircase, 'maill.00.med')
Case_test_4 = homard.CreateCase(CaseName, 'MESH', MeshFile)
Case_test_4.SetDirName(dircase)
- Case_test_4.SetConfType(1)
#
# Creation of the iterations
# ==========================
# Test of the results
#
n_rep_test_file = n_iter_test_file
-test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file)
+destroy_dir = not debug
+test_results(Rep_Test, Test_Name, dircase, n_iter_test_file, n_rep_test_file, destroy_dir)
#
if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(1)
-# -*- coding: iso-8859-1 -*-
+# -*- coding: utf-8 -*-
# Copyright (C) 2011-2015 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or