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])
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):
mesh = mfMesh.getMeshAtLevel(0)
self.assertTrue(mesh.getNodalConnectivity().isEqual(m.getNodalConnectivity()))
#
+ del sr
os.remove(sauvFile)
pass
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);
#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 )