]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Disabling FPE handling by default (similar to what has been done in GUI). abn/no_fpe
authorabn <adrien.bruneton@cea.fr>
Mon, 24 Feb 2014 09:04:45 +0000 (10:04 +0100)
committerabn <adrien.bruneton@cea.fr>
Mon, 24 Feb 2014 09:04:45 +0000 (10:04 +0100)
ParaView 4.1 needs +inf/-inf values to work properly. FPE handling can be reactivated
by setting env variable ENABLE_FPE to true.

src/GEOM_I/GEOM_Gen_i.cc

index ff48a03e9892078bdec555d998f576c0a8c15af0..e844dbcabf8d0648954c8959831b8c3cc2e39612 100644 (file)
@@ -110,11 +110,10 @@ GEOM_Gen_i::GEOM_Gen_i(CORBA::ORB_ptr            orb,
     //work around PAL12004, PAL12628
     //OSD::SetSignal( true );
     bool raiseFPE;
-#ifdef _DEBUG_
+#if defined(_DEBUG_) | defined(_DEBUG) //the Last for WIN32 default settings
+  char* envEnableFPE = getenv("ENABLE_FPE");
+  if (envEnableFPE && atoi(envEnableFPE))
     raiseFPE = true;
-    char* envDisableFPE = getenv("DISABLE_FPE");
-    if (envDisableFPE && atoi(envDisableFPE))
-      raiseFPE = false;
 #else
     raiseFPE = false;
 #endif