]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
Porting to Python 3
authorGilles DAVID <gilles-g.david@edf.fr>
Fri, 24 Mar 2017 09:35:57 +0000 (10:35 +0100)
committerGilles DAVID <gilles-g.david@edf.fr>
Fri, 24 Mar 2017 09:35:57 +0000 (10:35 +0100)
doc/salome/examples/ghs3d_optimization.py
src/GHS3DPlugin/GHS3DPluginBuilder.py

index a7ecaf658676f7ea5c4f7ed3c12e6ef3d8ff645a..6b08393ff0b692c6d2f55bf01da07b7ee774d1b9 100644 (file)
@@ -53,8 +53,8 @@ mg_opt.SetOptimizationLevel( smeshBuilder.Strong_Optimization )
 # run optimization
 optMesh.Compute()
 
-print "Nb tetra before optimization", mesh.NbTetras()
-print "Nb tetra after  optimization", optMesh.NbTetras()
+print("Nb tetra before optimization", mesh.NbTetras())
+print("Nb tetra after  optimization", optMesh.NbTetras())
 
 # End of script
 
index d65efc58b87cec9da5bc388696b3128d112e6699..3f71c42f9b976cee714bdcec7821a11aa8bbc17a 100644 (file)
@@ -74,7 +74,7 @@ class GHS3D_Algorithm(Mesh_Algorithm):
     #              if it is @c 0 (default), the algorithm is assigned to the main shape
     def __init__(self, mesh, geom=0):
         Mesh_Algorithm.__init__(self)
-        if noGHS3DPlugin: print "Warning: GHS3DPlugin module unavailable"
+        if noGHS3DPlugin: print("Warning: GHS3DPlugin module unavailable")
         self.Create(mesh, geom, self.algoType, "libGHS3DEngine.so")
         self.params = None
         pass