Salome HOME
Merge branch 'master' of https://codev-tuleap.cea.fr/plugins/git/salome/medcoupling
[tools/medcoupling.git] / doc / tutorial / atestMEDCouplingDataArray1.rst
index e168e44bc36544368205f370cd21b0b323c7b74c..6af7ac16d02ef595a58fdd2f68bb3c4001d45d85 100644 (file)
@@ -35,7 +35,7 @@ Playing with regular hexagons using DataArrayDouble
        a = cI.deltaShiftIndex()
        b = a - 1
        myNewNbOfTuples = oldNbOfTuples - sum(b.getValues())
-       o2n, newNbOfTuples = mc.DataArrayInt.BuildOld2NewArrayFromSurjectiveFormat2(oldNbOfTuples,c,cI)
+       o2n, newNbOfTuples = mc.DataArrayInt.ConvertIndexArrayToO2N(oldNbOfTuples,c,cI)
        print "Have I got the right number of tuples?"
        print "myNewNbOfTuples = %d, newNbOfTuples = %d" % (myNewNbOfTuples, newNbOfTuples)
        assert(myNewNbOfTuples == newNbOfTuples)
@@ -57,7 +57,7 @@ Playing with regular hexagons using DataArrayDouble
                m.insertNextCell(mc.NORM_POLYGON, cell_connec.getValues())
                pass
        # Check that everything is coherent (will throw if not)
-       m.checkCoherency()
+       m.checkConsistencyLight()
        # Write the result into a VTU file that can be read with ParaView
        m.writeVTK("My7hexagons.vtu")