]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
A debug.
authorageay <ageay>
Fri, 4 May 2012 12:48:30 +0000 (12:48 +0000)
committerageay <ageay>
Fri, 4 May 2012 12:48:30 +0000 (12:48 +0000)
src/MEDLoader/Swig/MEDLoaderTest3.py
src/MEDLoader/Swig/MEDLoaderTypemaps.i

index 03de0308aa71c0d3a7d93d6685e6261d2adf7b1a..c224c6bbd7b3c79be9e6c9d6047efeed072bf466 100644 (file)
@@ -610,6 +610,7 @@ class MEDLoaderTest(unittest.TestCase):
         da=DataArrayInt.New(); da.alloc(9,1) ; da.iota(0) ; da.setName("sup1")
         #
         ff1.setFieldProfile(f1,mm1,0,da)
+        ff1.changePflsNames([(["sup1_NORM_QUAD4"],"ForV650")])
         ff1.write(fname,0)
         #
         vals,pfl=ff1.getFieldWithProfile(ON_CELLS,0,mm1) ; vals.setName("")
@@ -624,7 +625,7 @@ class MEDLoaderTest(unittest.TestCase):
         self.assertEqual([7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18],sbt[0][1][0][1].getValues())# values for TRI3
         self.assertEqual(4,sbt[1][0])#QUAD4
         self.assertEqual(0,sbt[1][1][0][0])#CELL For QUAD4
-        self.assertEqual("sup1_NORM_QUAD4",sbt[1][1][0][2])# profile For QUAD4
+        self.assertEqual("ForV650",sbt[1][1][0][2])# profile For QUAD4
         self.assertEqual([19, 20, 21, 22, 23, 24],sbt[1][1][0][1].getValues())# values for QUAD4
         self.assertEqual([0],ff2.getTypesOfFieldAvailable())
         vals,pfl=ff2.getFieldWithProfile(ON_CELLS,0,mm1) ; vals.setName("")
index 3a18f44fcb0320a94c467bae7ef6bb0e2fbc4d87..493c0cda508bc9654d6ca2a048159918290c1467 100644 (file)
@@ -229,7 +229,7 @@ std::vector< std::pair<std::vector<std::string>, std::string > > convertVecPairV
                   p.first.resize(size2);
                   for(int j=0;j<size2;j++)
                     {
-                      PyObject *o0j=PyTuple_GetItem(o0,j);
+                      PyObject *o0j=PyList_GetItem(o0,j);
                       if(PyString_Check(o0j))
                         {
                           p.first[j]=std::string(PyString_AsString(o0j));