]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
IPAL 0051561: Hexotic algorithm fail
authorvsr <vsr@opencascade.com>
Mon, 29 Oct 2012 13:36:13 +0000 (13:36 +0000)
committervsr <vsr@opencascade.com>
Mon, 29 Oct 2012 13:36:13 +0000 (13:36 +0000)
Fix problem of Hexotic algo computation on 32bit platforms

src/DriverGMF/DriverGMF_Write.cxx

index cdddd629d11af0c0ba9f1c03ccef63eb5b2f5d95..3e7e6fd870dfe2d656748c56db03e498cbf3988d 100644 (file)
@@ -66,7 +66,7 @@ DriverGMF_Write::~DriverGMF_Write()
 
 Driver_Mesh::Status DriverGMF_Write::Perform()
 {
-  const int dim = 3, version = 3;
+  const int dim = 3, version = sizeof(long) == 4 ? 2 : 3;
 
   int meshID = GmfOpenMesh( myFile.c_str(), GmfWrite, version, dim );
   if ( !meshID )