]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/MEFISTO2/Rn.h
Salome HOME
PAL13330( When mesh generation does not success, trace where )
[modules/smesh.git] / src / MEFISTO2 / Rn.h
index aa69c4aaac9888d2df657c8ab0c7e3f40d4d0ed2..63c6ec26640f6493d403fe2a6daac90852c03eb4 100755 (executable)
@@ -1,6 +1,6 @@
 //  MEFISTO :  library to compute 2D triangulation from segmented boundaries
 //
-//  Copyright (C) 2003  Laboratoire J.-L. Lions UPMC Paris
+//  Copyright (C) 2006  Laboratoire J.-L. Lions UPMC Paris
 // 
 //  This library is free software; you can redistribute it and/or 
 //  modify it under the terms of the GNU Lesser General Public 
@@ -23,7 +23,7 @@
 //  File   : Rn.h
 //  Module : SMESH
 //  Authors: Frederic HECHT & Alain PERRONNET
-//
+//  Date   : 13 novembre 2006
 
 #ifndef Rn__h
 #define Rn__h
@@ -62,19 +62,19 @@ typedef char Nom[1+24];
 
 //le type N des nombres entiers positifs
 //=========
+#ifndef PCLINUX64
 typedef unsigned long int N;
+#else 
+typedef unsigned int N;
+#endif
 
 //le type Z des nombres entiers relatifs
 //=========
-// 64-bit porting: "long" replaced with "int". 
-// On 64-bit, C++ long type is 8 byte long. MEFISTO2D C code calls several Fortran subroutines passing
-// arguments of this type, however Fortran knows nothing about changed size of arguments, 
-// therefore stack gets corrupted. With "int" used instead of "long", Fortran calls from C do no harm to the stack
-// After this modification, behavior on 32-bit platforms does not change: on all platforms supported by
-// SALOME 3, "int" and "long" have the same size of 4 bytes. 
-//========
-//typedef long int Z;
+#ifndef PCLINUX64
+typedef long int Z;
+#else
 typedef int Z;
+#endif
 
 //le type R des nombres "reels"
 //=========