mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-03 23:30:34 +05:00
Disabling FPE handling by default (similar to what has been done in GUI).
ParaView 4.1 needs +inf/-inf values to work properly. FPE handling can be reactivated by setting env variable ENABLE_FPE to true.
This commit is contained in:
parent
1156528dc2
commit
363387be3f
@ -110,11 +110,10 @@ GEOM_Gen_i::GEOM_Gen_i(CORBA::ORB_ptr orb,
|
|||||||
//work around PAL12004, PAL12628
|
//work around PAL12004, PAL12628
|
||||||
//OSD::SetSignal( true );
|
//OSD::SetSignal( true );
|
||||||
bool raiseFPE;
|
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;
|
raiseFPE = true;
|
||||||
char* envDisableFPE = getenv("DISABLE_FPE");
|
|
||||||
if (envDisableFPE && atoi(envDisableFPE))
|
|
||||||
raiseFPE = false;
|
|
||||||
#else
|
#else
|
||||||
raiseFPE = false;
|
raiseFPE = false;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user