Back to index

salome-med  6.5.0
Namespaces | Variables
testRenumbering.py File Reference

Go to the source code of this file.

Namespaces

namespace  testRenumbering

Variables

tuple testRenumbering.srcdir = os.getenv("srcdir")
 
*** TEST 2D ***

tuple testRenumbering.med_root = os.getenv("MED_ROOT_DIR")
string testRenumbering.dir_renumber = "./renumber"
tuple testRenumbering.dir_mesh = os.path.join( srcdir, "../../resources")
string testRenumbering.filename = "Test2D.med"
 *** Avec polygone ***
string testRenumbering.meshname = "Mesh_1"
string testRenumbering.method = "BOOST"
string testRenumbering.string_to_execute = "'"
tuple testRenumbering.m = MESH(MED_DRIVER,dir_mesh+"/out_"+filename,meshname)
list testRenumbering.field_ini = [2,3,12,13,14,15,4,5,6,7,8,9,16,17,0,1,10,11]
tuple testRenumbering.s = m.getSupportOnAll(MED_CELL)
tuple testRenumbering.f = FIELDDOUBLE(s,2)
tuple testRenumbering.id = f.addDriver(MED_DRIVER,dir_mesh+"/out_"+filename,"Test field")
 testRenumbering.field = True
tuple testRenumbering.nbcell2dboost = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
list testRenumbering.connectivite = [2,6,13,11,11,13,14,12,6,5,15,13,12,14,10,4,13,15,16,14,5,1,7,15,14,16,9,10,15,7,8,16,16,8,3,9]
list testRenumbering.connectivite_index = [1,5,9,13,17,21,25,29,33,37]
tuple testRenumbering.conn = m.getConnectivity(MED_NODAL,MED_CELL,MED_QUAD4)
tuple testRenumbering.conn_index = m.getConnectivityIndex(MED_NODAL,MED_CELL)
tuple testRenumbering.conn2dboost = (list(conn)==connectivite)
tuple testRenumbering.conn_index2dboost = (list(conn_index)==connectivite_index)
tuple testRenumbering.Boost2D = conn2dboostandconn_index2dboostand(nbcell2dboost==9)
tuple testRenumbering.nbcell2dmetis = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple testRenumbering.conn2dmetis = (list(conn)==connectivite)
tuple testRenumbering.conn_index2dmetis = (list(conn_index)==connectivite_index)
tuple testRenumbering.Metis2D = conn2dmetisandconn_index2dmetisand(nbcell2dmetis==9)
tuple testRenumbering.nbcell2dpolyboost = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple testRenumbering.conn2dpolyboost = (list(conn)==connectivite)
tuple testRenumbering.conn_index2dpolyboost = (list(conn_index)==connectivite_index)
tuple testRenumbering.PolyBoost2D = conn2dpolyboostandconn_index2dpolyboostand(nbcell2dpolyboost==9)
tuple testRenumbering.nbcell2dpolymetis = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple testRenumbering.conn2dpolymetis = (list(conn)==connectivite)
tuple testRenumbering.conn_index2dpolymetis = (list(conn_index)==connectivite_index)
tuple testRenumbering.PolyMetis2D = conn2dpolymetisandconn_index2dpolymetisand(nbcell2dpolymetis==9)
tuple testRenumbering.nbcell3dboost = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple testRenumbering.conn3dboost = (list(conn)==connectivite)
tuple testRenumbering.conn_index3dboost = (list(conn_index)==connectivite_index)
tuple testRenumbering.Boost3D = conn3dboostandconn_index3dboostand(nbcell3dboost==8)
tuple testRenumbering.nbcell3dmetis = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple testRenumbering.conn3dmetis = (list(conn)==connectivite)
tuple testRenumbering.conn_index3dmetis = (list(conn_index)==connectivite_index)
tuple testRenumbering.Metis3D = conn3dmetis&conn_index3dmetis&(nbcell3dmetis==8)
tuple testRenumbering.nbcell3dpolyboost = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple testRenumbering.conn3dpolyboost = (connectivite==list(conn))
tuple testRenumbering.conn_index3dpolyboost = (connectivite_index==list(conn_index))
tuple testRenumbering.PolyBoost3D = (conn3dpolyboost and conn_index3dpolyboost and (nbcell3dpolyboost==8))
tuple testRenumbering.nbcell3dpolymetis = m.getNumberOfElements(MED_CELL,MED_ALL_ELEMENTS)
tuple testRenumbering.conn3dpolymetis = (list(conn)==connectivite)
tuple testRenumbering.conn_index3dpolymetis = (list(conn_index)==connectivite_index)
tuple testRenumbering.PolyMetis3D = (conn3dpolymetis and conn_index3dpolymetis and (nbcell3dpolymetis==8))