Back to index

salome-med  6.5.0
Functions | Variables
TestMedCorba5 Namespace Reference

Functions

def compare

Variables

list BASE = os.environ["MED_ROOT_DIR"]
tuple fileName = os.path.join( BASE, 'pointe.med' )
tuple md = MED()
tuple mdDriver = MED_MED_RDONLY_DRIVER(fileName, md)
tuple mLocal = md.getMesh(md.getMeshName(0))
tuple orb = CORBA.ORB_init([''], CORBA.ORB_ID)
tuple lcc = LifeCycleCORBA(orb)
tuple C = lcc.FindOrLoadComponent("FactoryServerPy", "Compo1Py")
tuple mDistant = C.Calcul1()
tuple n1 = mLocal.getNumberOfTypes(i)
tuple n2 = mDistant.getNumberOfTypes(i)
tuple T1 = mLocal.getTypes(i)
tuple T2 = mDistant.getTypes(i)
tuple c1
tuple c2

Function Documentation

def TestMedCorba5.compare (   x,
  y 
)

Definition at line 32 of file TestMedCorba5.py.

00032 
00033 def compare(x, y):
00034     if (len(x) != len(y)):
00035         return 0
00036     for i in xrange(len(x)):
00037         if x[i] != y[i]:
00038             return 0
00039     return 1
00040 
00041 # MED Mesh read from a (local) file


Variable Documentation

tuple TestMedCorba5.BASE = os.environ["MED_ROOT_DIR"]

Definition at line 25 of file TestMedCorba5.py.

tuple TestMedCorba5.C = lcc.FindOrLoadComponent("FactoryServerPy", "Compo1Py")

Definition at line 64 of file TestMedCorba5.py.

Initial value:
00001 mLocal.getConnectivity(MED_FULL_INTERLACE, MED_NODAL, \
00002                                         i, T1[j])

Definition at line 97 of file TestMedCorba5.py.

Initial value:
00001 mDistant.getConnectivity(MED_FULL_INTERLACE, MED_NODAL, \
00002                                         i, T2[j])

Definition at line 99 of file TestMedCorba5.py.

tuple TestMedCorba5.fileName = os.path.join( BASE, 'pointe.med' )

Definition at line 28 of file TestMedCorba5.py.

tuple TestMedCorba5.lcc = LifeCycleCORBA(orb)

Definition at line 62 of file TestMedCorba5.py.

tuple TestMedCorba5.md = MED()

Definition at line 44 of file TestMedCorba5.py.

tuple TestMedCorba5.mdDriver = MED_MED_RDONLY_DRIVER(fileName, md)

Definition at line 46 of file TestMedCorba5.py.

tuple TestMedCorba5.mDistant = C.Calcul1()

Definition at line 67 of file TestMedCorba5.py.

tuple TestMedCorba5.mLocal = md.getMesh(md.getMeshName(0))

Definition at line 52 of file TestMedCorba5.py.

tuple TestMedCorba5.n1 = mLocal.getNumberOfTypes(i)

Definition at line 79 of file TestMedCorba5.py.

tuple TestMedCorba5.n2 = mDistant.getNumberOfTypes(i)

Definition at line 80 of file TestMedCorba5.py.

tuple TestMedCorba5.orb = CORBA.ORB_init([''], CORBA.ORB_ID)

Definition at line 61 of file TestMedCorba5.py.

tuple TestMedCorba5.T1 = mLocal.getTypes(i)

Definition at line 86 of file TestMedCorba5.py.

tuple TestMedCorba5.T2 = mDistant.getTypes(i)

Definition at line 87 of file TestMedCorba5.py.