Salome HOME
First draft of int64.
[tools/medcoupling.git] / doc / tutorial / medloader_advancedAPI1_fr.rst
index cad6678a529385ba5261bc16c7d6ce7600c90762..cd5be33a85de688d1cefc72cacee66efdbb757bf 100644 (file)
@@ -31,7 +31,6 @@ Pour information, le module ``MEDCoupling`` complet est inclus dans ``MEDLoader`
 si ``MEDLoader`` a été chargé. ::
 
        import MEDLoader as ml
-       from MEDLoader import MEDLoader
 
 Lecture, écriture d'un maillage
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -131,7 +130,7 @@ Créons un champ de vecteurs simple, aux cellules (P0), avec un seul pas de temp
 
        f = ml.MEDCouplingFieldDouble(ml.ON_CELLS, ml.ONE_TIME)
        f.setTime(5.6,7,8)
-       f.setArray(targetMesh.getBarycenterAndOwner())
+       f.setArray(targetMesh.computeCellCenterOfMass())
        f.setMesh(targetMesh)
        f.setName("AFieldName")
 
@@ -181,7 +180,7 @@ Lire le champ ``fPart`` du fichier "TargetMesh2.med" et les identifiants de cell
 
        fMEDFileRead2 = ml.MEDFileField1TS("TargetMesh2.med",fPart.getName(),7,8)
        fPartRead, pflRead = fMEDFileRead2.getFieldWithProfile(ml.ON_CELLS,0,meshMEDFileRead)
-       print "Is the partial field correclty read?", fPartRead.isEqualWithoutConsideringStr(fPart.getArray(),1e-12)
+       print "Is the partial field correctly read?", fPartRead.isEqualWithoutConsideringStr(fPart.getArray(),1e-12)
        print "Is the list of cell identifiers matching?", pflRead.isEqualWithoutConsideringStr(pfl)
 
 Solution