Back to index

salome-med  6.5.0
Functions | Variables
TestMedCorba1 Namespace Reference

Functions

def ecart
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()

Function Documentation

def TestMedCorba1.compare (   x,
  y 
)

Definition at line 72 of file TestMedCorba1.py.

00072 
00073 def compare(x, y):
00074     if (len(x) != len(y)):
00075         return 0
00076     for i in xrange(len(x)):
00077         if x[i] != y[i]:
00078             return 0
00079     return 1

def TestMedCorba1.ecart (   x,
  y 
)

Definition at line 63 of file TestMedCorba1.py.

00063 
00064 def ecart(x, y):
00065     s = 0.
00066     if (len(x) != len(y)):
00067         return 1.
00068     
00069     for i in xrange(len(x)):
00070         s = s + abs(x[i] - y[i]);
00071     return s


Variable Documentation

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

Definition at line 25 of file TestMedCorba1.py.

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

Definition at line 56 of file TestMedCorba1.py.

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

Definition at line 28 of file TestMedCorba1.py.

tuple TestMedCorba1.lcc = LifeCycleCORBA(orb)

Definition at line 54 of file TestMedCorba1.py.

tuple TestMedCorba1.md = MED()

Definition at line 36 of file TestMedCorba1.py.

tuple TestMedCorba1.mdDriver = MED_MED_RDONLY_DRIVER(fileName, md)

Definition at line 38 of file TestMedCorba1.py.

tuple TestMedCorba1.mDistant = C.Calcul1()

Definition at line 59 of file TestMedCorba1.py.

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

Definition at line 44 of file TestMedCorba1.py.

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

Definition at line 53 of file TestMedCorba1.py.