Salome HOME
projects
/
modules
/
med.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge 'master' branch into 'V9_dev' branch.
[modules/med.git]
/
doc
/
tut
/
medcoupling
/
testmed_simple.py
diff --git
a/doc/tut/medcoupling/testmed_simple.py
b/doc/tut/medcoupling/testmed_simple.py
index d0c3124e6001409d133494df0c7735194d18ff94..9801976d9a2f171a97dff7f6cebc4ed91d3bfa0a 100755
(executable)
--- a/
doc/tut/medcoupling/testmed_simple.py
+++ b/
doc/tut/medcoupling/testmed_simple.py
@@
-1,5
+1,4
@@
-#!/usr/bin/env python
-# -*- coding: iso-8859-1 -*-
+#!/usr/bin/env python3
# Copyright (C) 2011-2016 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# Copyright (C) 2011-2016 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
@@
-53,7
+52,7
@@
sizeX = size
nbNodesX = sizeX+1
stepX = 0.1
arrX = [float(i * stepX) for i in range(nbNodesX)]
nbNodesX = sizeX+1
stepX = 0.1
arrX = [float(i * stepX) for i in range(nbNodesX)]
-print
"Size of arrX = %d"%len(arrX
)
+print
("Size of arrX = %d"%len(arrX)
)
coordsX=MC.DataArrayDouble.New()
coordsX.setValues(arrX,nbNodesX,1)
coordsX=MC.DataArrayDouble.New()
coordsX.setValues(arrX,nbNodesX,1)
@@
-66,8
+65,8
@@
coordsY=MC.DataArrayDouble.New()
coordsY.setValues(arrY,sizeY,1)
cmesh.setCoords(coordsX,coordsY)
coordsY.setValues(arrY,sizeY,1)
cmesh.setCoords(coordsX,coordsY)
-print
cmesh.getSpaceDimension(
)
-#
print cmesh
+print
(cmesh.getSpaceDimension()
)
+#
print(cmesh)
# WARN: In the current state of development of MEDLoader, only
# unstructured meshes are supported for writing function in med
# WARN: In the current state of development of MEDLoader, only
# unstructured meshes are supported for writing function in med