X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCouplingCorba_Swig%2FMEDCouplingCorbaSwigTest.py;h=01289cf51e0a36b5fb9f418062aac6c2fbae84e5;hb=0c9d48870957c4a9f6f82fc8e2c569780a5f886b;hp=d42e5f46c8e6a5473d42c0f9065b115978564c6f;hpb=12d96ed810aad5afc3acbab04ecf15d3f1a416e8;p=modules%2Fmed.git diff --git a/src/MEDCouplingCorba_Swig/MEDCouplingCorbaSwigTest.py b/src/MEDCouplingCorba_Swig/MEDCouplingCorbaSwigTest.py index d42e5f46c..01289cf51 100644 --- a/src/MEDCouplingCorba_Swig/MEDCouplingCorbaSwigTest.py +++ b/src/MEDCouplingCorba_Swig/MEDCouplingCorbaSwigTest.py @@ -168,7 +168,7 @@ class MEDCouplingCorbaServBasicsTest: a2.setInfoOnComponent(0,"SmthZ"); # targetMesh.setCoordsAt(0,a1); - targetMesh.setCoordsAt(2,a2); + targetMesh.setCoordsAt(1,a2); # # targetMesh.checkCoherency(); @@ -192,7 +192,7 @@ class MEDCouplingCorbaServBasicsTest: def build1SGTUMesh(self): targetMesh=MEDCoupling1SGTUMesh("Mesh1SGT",NORM_QUAD4) - targetMesh.setTime(2.3,4,5) + targetMesh.setTime(2.3,44,-55) targetMesh.setTimeUnit("us") targetMesh.setDescription("My Description of 1SGTU"); a1=DataArrayDouble([1.,1.,0.,2.,1.,0.,3.,1.,0.,1.,0.,0.,2.,0.,0.,0.,0.,0.,0.,1.,0.,3.,0.,0.,4.,0.,0.,4.,1.,0.],10,3) @@ -207,7 +207,7 @@ class MEDCouplingCorbaServBasicsTest: def build1DGTUMesh(self): targetMesh=MEDCoupling1DGTUMesh("Mesh1DGT",NORM_POLYGON); - targetMesh.setTime(2.3,4,5) + targetMesh.setTime(2.3,55,-66) targetMesh.setTimeUnit("us") targetMesh.setDescription("My Description of 1DGTU"); a1=DataArrayDouble([1.,1.,0.,2.,1.,0.,3.,1.,0.,1.,0.,0.,2.,0.,0.,0.,0.,0.,0.,1.,0.,3.,0.,0.,4.,0.,0.,4.,1.,0.],10,3) @@ -600,8 +600,13 @@ class MEDCouplingCorbaServBasicsTest: return ret; def buildFileNameForIOR(self): - ret=os.getenv("TMP"); - ret+="/entryPointMEDCouplingCorba.ior"; + tmpdir=os.getenv("TMP", "/tmp"); + username=""; + if os.getenv("USERNAME"): + username = os.getenv("USERNAME")+"_"; + elif os.getenv("USER"): + username = os.getenv("USER")+"_"; + ret=tmpdir+"/"+username+"entryPointMEDCouplingCorba.ior"; return ret; pass