From 4c4e6aef0a9279311e4d36dd49273b640ce9007c Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 23 May 2007 13:42:03 +0000 Subject: [PATCH] Fix for Bug IPAL16051 - IOLS. Mandriva64 porting: CRASH after trying to create ScalarMap presentation. --- src/CONVERTOR/VISU_MedConvertor.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index b4d1f741..fa6710bc 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -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()); -- 2.39.2