Salome HOME
Useful ConvertMEDFileTo30 tool to change version of a file.
[tools/medcoupling.git] / src / MEDLoader / Swig / MEDLoaderExamplesTest.py
index ddabb286a24ce2333c4eb0073707f29f69ad4278..0997bdb62521d7bbd29c5bb8de7e9fa699b75b36 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2015  CEA/DEN, EDF R&D
+# Copyright (C) 2007-2016  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -206,9 +206,9 @@ class MEDLoaderBasicsTest(unittest.TestCase):
         F1Cell.setTime(1000.,2,3)
         F1Cell.setName("F1Cell")
         WriteFieldUsingAlreadyWrittenMesh("file2.med",F1Cell)
-        F1Cell1=F1Cell.deepCpy()
+        F1Cell1=F1Cell.deepCopy()
         F1Cell1.setMesh(myMesh1)
-        F1Cell1.setArray(myMesh1.getBarycenterAndOwner())
+        F1Cell1.setArray(myMesh1.computeCellCenterOfMass())
         WriteFieldUsingAlreadyWrittenMesh("file2.med",F1Cell1)
 #! [PySnippetMeshAdvAPI1_12]
         f1Cell_3D=ReadFieldCell("file2.med","Example2",0,"F1Cell",2,3)