]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug IPAL16051
authorapo <apo@opencascade.com>
Wed, 23 May 2007 13:42:03 +0000 (13:42 +0000)
committerapo <apo@opencascade.com>
Wed, 23 May 2007 13:42:03 +0000 (13:42 +0000)
 - IOLS. Mandriva64 porting: CRASH after trying to create ScalarMap presentation.

src/CONVERTOR/VISU_MedConvertor.cxx

index b4d1f74115ea164bae2c8050a63a9bb82abcad5b..fa6710bc9e1ff5789fffd0ce5aea30b1db31f28c 100644 (file)
@@ -33,6 +33,8 @@
 #include "MED_GaussUtils.hxx"
 #include "MED_Utilities.hxx"
 
+#include "SALOMEconfig.h"
+
 #if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
 #define NO_CAS_CATCH
 #endif
@@ -784,8 +786,14 @@ namespace
       
       VISU::TEntity aVEntity = MEDEntityToVTK(aMEntity);
       vtkIdType aDataType = VTK_DOUBLE;
-      if(aFieldInfo->GetType() != MED::eFLOAT64)
+      if(aFieldInfo->GetType() != MED::eFLOAT64){
+#if defined(SUN4SOL2) || defined(PCLINUX) || defined(PPRO_NT) || defined(PCLINUX64_32) || defined(OSF1_32) || defined(IRIX64_32) || defined(RS6000) || defined(HP9000)
        aDataType = VTK_INT;
+#endif
+#if defined(IRIX64) || defined(OSF1) || defined(PCLINUX64)
+       aDataType = VTK_LONG;
+#endif
+      }
       VISU::PMEDMeshOnEntity aMeshOnEntity = theMesh->myMeshOnEntityMap[aVEntity];
       VISU::TFieldMap& aFieldMap = aMeshOnEntity->myFieldMap;
       VISU::PMEDField aField = aFieldMap[aFieldName](new VISU::TMEDField());