]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Win7 32 bits porting.
authorageay <ageay>
Wed, 16 Oct 2013 13:20:39 +0000 (13:20 +0000)
committerageay <ageay>
Wed, 16 Oct 2013 13:20:39 +0000 (13:20 +0000)
resources/agitateur.med
src/MEDCoupling_Swig/MEDCouplingBasicsTest.py
src/MEDLoader/Swig/SauvLoaderTest.py

index 10529512cd8b5617385c84b10e47cf18fbe7d50a..73c62e12717a612d9c92dd11ca04db29687b1fcf 100644 (file)
Binary files a/resources/agitateur.med and b/resources/agitateur.med differ
index b820e91921deaa34f0354fcbeb9a23f5a3c98abf..16f02e0562c16e00146fd13f282cc784eb35d1c9 100644 (file)
@@ -12991,8 +12991,9 @@ class MEDCouplingBasicsTest(unittest.TestCase):
         cm.setCoords(arr0,arr1,arr1) ; um=cm.buildUnstructured()
         #
         m=MEDCoupling1SGTUMesh("m",NORM_QUAD4)
+        mem_m=m.getHeapMemorySize()
         m.allocateCells(5)
-        self.assertIn(m.getHeapMemorySize(),xrange(80,90))
+        self.assertIn(m.getHeapMemorySize()-mem_m,xrange(5*4*4,5*4*4+32))
         self.assertEqual(m.getNodalConnectivity().getNbOfElemAllocated(),20)
         m.setCoords(um.getCoords())
         m.insertNextCell([1,0,6,7])
index fbdc3c1a1dddc328eaf83877af58fe800103079c..c4f70d34287a9f76368f86633b984e8a51439775 100644 (file)
@@ -156,9 +156,9 @@ class SauvLoaderTest(unittest.TestCase):
             io1 = fieldOnFaces.getIterations()
             fof = fieldOnFaces.getFieldOnMeshAtLevel(f1.getTypeOfField(),io1[i][0],io1[i][1],um1)
             self.assertTrue( d.isEqual( fof.getArray(), 1e-12 ))
-
-            os.remove( sauvFile )
             pass
+        del sr
+        os.remove( sauvFile )
         pass
 
     def testSauv2MedWONodeFamilyNum(self):
@@ -234,6 +234,7 @@ class SauvLoaderTest(unittest.TestCase):
         mesh = mfMesh.getMeshAtLevel(0)
         self.assertTrue(mesh.getNodalConnectivity().isEqual(m.getNodalConnectivity()))
         #
+        del sr
         os.remove(sauvFile)
         pass
 
@@ -298,7 +299,7 @@ class SauvLoaderTest(unittest.TestCase):
         mfd.setMeshes( mfm )
 
         # convert the MED file to a SAUV file
-        sauvFile = "SauvLoaderTest::testGaussPt.sauv"
+        sauvFile = "SauvLoaderTest_testGaussPt.sauv"
         sw=SauvWriter.New();
         sw.setMEDFileDS(mfd);
         sw.write(sauvFile);
@@ -317,7 +318,7 @@ class SauvLoaderTest(unittest.TestCase):
         #f2.setOrder( f.getTime()[2] ) # not stored in SAUV
         self.assertTrue( m2.isEqual( m, 1e-12 ))
         self.assertTrue( f2.isEqual( f, 1e-12, 1e-12 ))
-
+        del sr
         os.remove( sauvFile )