Salome HOME
Integration of the '#19480 [CEA 19477] MEDCOUPLING tutorials migration'
[tools/medcoupling.git] / doc / tutorial / medloader_basicAPI1_en.rst
index a4c44923d046bacfbbb429c6d22582c9195b739e..241c7787a8c152cf024a08fa4cce7ee174ffec86 100644 (file)
@@ -50,7 +50,7 @@ We are then ready to write it. ::
 Then trying to read it. ::
 
        meshRead=ml.ReadUMeshFromFile("TargetMesh.med",targetMesh.getName(),0)
-       print "Is the mesh read in file equals targetMesh? %s"%(meshRead.isEqual(targetMesh,1e-12))
+       print("Is the mesh read in file equals targetMesh? %s"%(meshRead.isEqual(targetMesh,1e-12)))
 
 Writing/Reading a field on one time step at once
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -68,7 +68,7 @@ Creation of a vector field "f" on cell supported by "targetMesh". ::
 Reading into MyFirstField.med ::
 
        f2=ml.ReadFieldCell("MyFirstField.med",f.getMesh().getName(),0,f.getName(),7,8)
-       print "Is the field read in file equals f ? %s"%(f2.isEqual(f,1e-12,1e-12))
+       print("Is the field read in file equals f ? %s"%(f2.isEqual(f,1e-12,1e-12)))
 
 Writing/Reading a field on one or many times steps in "multi-session mode"
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~