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
Update copyrights
[modules/med.git]
/
src
/
MEDCouplingCorba_Swig
/
MEDCouplingCorbaSwigTest.py
diff --git
a/src/MEDCouplingCorba_Swig/MEDCouplingCorbaSwigTest.py
b/src/MEDCouplingCorba_Swig/MEDCouplingCorbaSwigTest.py
index 57c976b6d347bdefdf58be6e85f94dddc1492c0c..bf73c60f72bebcf3bfa6db80627e895a9be1ee10 100644
(file)
--- a/
src/MEDCouplingCorba_Swig/MEDCouplingCorbaSwigTest.py
+++ b/
src/MEDCouplingCorba_Swig/MEDCouplingCorbaSwigTest.py
@@
-1,4
+1,4
@@
-# Copyright (C) 2007-201
6
CEA/DEN, EDF R&D
+# Copyright (C) 2007-201
9
CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-18,7
+18,7
@@
#
# Author : Anthony Geay (CEA/DEN)
#
# Author : Anthony Geay (CEA/DEN)
-from
MEDC
oupling import *
+from
medc
oupling import *
import math
import os
import math
import os
@@
-78,7
+78,7
@@
class MEDCouplingCorbaServBasicsTest:
targetMesh.setName("MyMesh3D");
targetMesh.setDescription("build3DMesh");
targetMesh.allocateCells(12);
targetMesh.setName("MyMesh3D");
targetMesh.setDescription("build3DMesh");
targetMesh.allocateCells(12);
- for i in
x
range(8):
+ for i in range(8):
targetMesh.insertNextCell(NORM_HEXA8,8,targetConn[8*i:8*(i+1)]);
pass
targetMesh.finishInsertingCells();
targetMesh.insertNextCell(NORM_HEXA8,8,targetConn[8*i:8*(i+1)]);
pass
targetMesh.finishInsertingCells();
@@
-115,7
+115,7
@@
class MEDCouplingCorbaServBasicsTest:
targetMesh=MEDCouplingUMesh.New();
targetMesh.setMeshDimension(0);
targetMesh.allocateCells(8);
targetMesh=MEDCouplingUMesh.New();
targetMesh.setMeshDimension(0);
targetMesh.allocateCells(8);
- targetMesh.setName("Wonderful
l
0D mesh");
+ targetMesh.setName("Wonderful 0D mesh");
targetMesh.setDescription("build0DMesh");
targetConn=[]
targetMesh.insertNextCell(NORM_POINT1,1,[0]);
targetMesh.setDescription("build0DMesh");
targetConn=[]
targetMesh.insertNextCell(NORM_POINT1,1,[0]);
@@
-137,7
+137,7
@@
class MEDCouplingCorbaServBasicsTest:
return targetMesh;
def buildM1DMesh(self):
return targetMesh;
def buildM1DMesh(self):
- meshM1D=MEDCouplingUMesh.New("wonderful
l
-1 D mesh",-1);
+ meshM1D=MEDCouplingUMesh.New("wonderful -1 D mesh",-1);
meshM1D.setDescription("buildM1DMesh");
meshM1D.checkConsistencyLight();
return meshM1D;
meshM1D.setDescription("buildM1DMesh");
meshM1D.checkConsistencyLight();
return meshM1D;
@@
-353,7
+353,7
@@
class MEDCouplingCorbaServBasicsTest:
f.setGaussLocalizationOnType(NORM_QUAD4,_refCoo2,_gsCoo1,_wg1);
array=DataArrayDouble.New();
ptr=18*2*[None]
f.setGaussLocalizationOnType(NORM_QUAD4,_refCoo2,_gsCoo1,_wg1);
array=DataArrayDouble.New();
ptr=18*2*[None]
- for i in
x
range(18*2):
+ for i in range(18*2):
ptr[i]=float(i+1);
pass
array.setValues(ptr,18,2);
ptr[i]=float(i+1);
pass
array.setValues(ptr,18,2);
@@
-376,7
+376,7
@@
class MEDCouplingCorbaServBasicsTest:
f.setDescription("MyDescriptionNE");
array=DataArrayDouble.New();
ptr=18*2*[None]
f.setDescription("MyDescriptionNE");
array=DataArrayDouble.New();
ptr=18*2*[None]
- for i in
x
range(18*2):
+ for i in range(18*2):
ptr[i]=float(i+7)
array.setValues(ptr,18,2);
array.setInfoOnComponent(0,"Power [MW]");
ptr[i]=float(i+7)
array.setValues(ptr,18,2);
array.setInfoOnComponent(0,"Power [MW]");