]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
solve problem in MEDReader with polygons.
authorgeay <anthony.geay@cea.fr>
Wed, 16 Apr 2014 14:13:13 +0000 (16:13 +0200)
committergeay <anthony.geay@cea.fr>
Wed, 16 Apr 2014 14:13:13 +0000 (16:13 +0200)
src/MEDLoader/MEDFileFieldOverView.cxx

index 9bea050d6553f251f5dd24e68f43ad93eaa5992e..d90308ee0605223c6802a87e6ea361ddcd5fb352 100644 (file)
@@ -1019,7 +1019,7 @@ bool MEDUMeshMultiLev::buildVTUArrays(DataArrayDouble *& coords, DataArrayByte *
                 {
                   *dPtr++=connIPtr[1]-connIPtr[0];
                   dPtr=std::copy(connPtr+connIPtr[0],connPtr+connIPtr[1],dPtr);
-                  *cPtr++=k; k+=connIPtr[1]-connIPtr[0];
+                  *cPtr++=k; k+=connIPtr[1]-connIPtr[0]+1;
                 }
             }
           else