]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
treat hexa27 in depth
authorgeay <anthony.geay@cea.fr>
Wed, 5 Mar 2014 16:46:04 +0000 (17:46 +0100)
committergeay <anthony.geay@cea.fr>
Wed, 5 Mar 2014 16:46:04 +0000 (17:46 +0100)
src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx

index b79c83c40fce3559265559495ca75a06bcf7038b..a6c603c2e1774ff81d99cca20db9554f0eb53460 100644 (file)
@@ -136,7 +136,13 @@ vtkIdTypeArray *ELGACmp::createNew(const ParaMEDMEM::MEDFileFieldGlobsReal *glob
       for(int i=0;i<nbGaussPt;i++)
         {
           const double *pt0(calculator.getFunctionValues(i));
-          std::copy(pt0,pt0+nbPtsPerCell,shape+nbPtsPerCell*i);
+          if(ct!=INTERP_KERNEL::NORM_HEXA27)
+            std::copy(pt0,pt0+nbPtsPerCell,shape+nbPtsPerCell*i);
+          else
+            {
+              for(int j=0;j<27;j++)
+                shape[nbPtsPerCell*i+j]=pt0[MEDMeshMultiLev::HEXA27_PERM_ARRAY[j]];
+            }
         }
       unsigned char vtkType(MEDMeshMultiLev::PARAMEDMEM_2_VTKTYPE[ct]);
       m[vtkType]=nbGaussPt;