Back to index

salome-med  6.5.0
Functions | Variables
TestMedCorba3 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()
tuple x1 = mLocal.getCoordinates(MED_FULL_INTERLACE)
tuple x2 = mDistant.getCoordinates(MED_FULL_INTERLACE)
tuple d = ecart(x1, x2)
tuple s1 = mLocal.getCoordinatesNames()
tuple s2 = mDistant.getCoordinatesNames()

Function Documentation

def TestMedCorba3.compare (   x,
  y 
)

Definition at line 71 of file TestMedCorba3.py.

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

def TestMedCorba3.ecart (   x,
  y 
)

Definition at line 62 of file TestMedCorba3.py.

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


Variable Documentation

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

Definition at line 25 of file TestMedCorba3.py.

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

Definition at line 55 of file TestMedCorba3.py.

Definition at line 105 of file TestMedCorba3.py.

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

Definition at line 28 of file TestMedCorba3.py.

tuple TestMedCorba3.lcc = LifeCycleCORBA(orb)

Definition at line 53 of file TestMedCorba3.py.

tuple TestMedCorba3.md = MED()

Definition at line 35 of file TestMedCorba3.py.

tuple TestMedCorba3.mdDriver = MED_MED_RDONLY_DRIVER(fileName, md)

Definition at line 37 of file TestMedCorba3.py.

tuple TestMedCorba3.mDistant = C.Calcul1()

Definition at line 58 of file TestMedCorba3.py.

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

Definition at line 43 of file TestMedCorba3.py.

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

Definition at line 52 of file TestMedCorba3.py.

tuple TestMedCorba3.s1 = mLocal.getCoordinatesNames()

Definition at line 110 of file TestMedCorba3.py.

tuple TestMedCorba3.s2 = mDistant.getCoordinatesNames()

Definition at line 111 of file TestMedCorba3.py.

tuple TestMedCorba3.x1 = mLocal.getCoordinates(MED_FULL_INTERLACE)

Definition at line 99 of file TestMedCorba3.py.

tuple TestMedCorba3.x2 = mDistant.getCoordinates(MED_FULL_INTERLACE)

Definition at line 100 of file TestMedCorba3.py.