Salome HOME
Intersection: renaming some variables and refactor to make the algo easier to read.
[tools/medcoupling.git] / doc / tutorial / atestMEDLoaderAdvancedAPI1.rst
index 100fc8efaccb97e2d43914f6882a6bb68fa3441d..714f7ce33c3e8d87fe7ed8596b35d1cf099c2a43 100644 (file)
@@ -7,7 +7,6 @@ Reading, Writing a MED file using MEDLoader advanced API
 ::
 
        import MEDLoader as ml
-       from MEDLoader import MEDLoader
        # Mesh creation
        targetCoords = [-0.3,-0.3, 0.2,-0.3, 0.7,-0.3, -0.3,0.2, 0.2,0.2, 0.7,0.2, -0.3,0.7, 0.2,0.7, 0.7,0.7 ]
        targetConn = [0,3,4,1, 1,4,2, 4,5,2, 6,7,4,3, 7,8,5,4]
@@ -90,6 +89,6 @@ Reading, Writing a MED file using MEDLoader advanced API
        #
        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)