mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
DEFEATURE: remove old IRIX code for floating-point-exceptions
This commit is contained in:
@ -41,8 +41,6 @@ License
|
|||||||
#endif
|
#endif
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#elif defined(sgiN32) || defined(sgiN32Gcc)
|
|
||||||
#include <sigfpe.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef darwin
|
#ifdef darwin
|
||||||
@ -201,33 +199,9 @@ void Foam::sigFpe::set(bool verbose)
|
|||||||
|
|
||||||
setHandler("SIGFPE", SIGFPE, sigHandler);
|
setHandler("SIGFPE", SIGFPE, sigHandler);
|
||||||
|
|
||||||
sigActive_ = true;
|
|
||||||
|
|
||||||
#elif defined(sgiN32) || defined(sgiN32Gcc)
|
|
||||||
|
|
||||||
sigfpe_[_DIVZERO].abort=1;
|
|
||||||
sigfpe_[_OVERFL].abort=1;
|
|
||||||
sigfpe_[_INVALID].abort=1;
|
|
||||||
|
|
||||||
sigfpe_[_DIVZERO].trace=1;
|
|
||||||
sigfpe_[_OVERFL].trace=1;
|
|
||||||
sigfpe_[_INVALID].trace=1;
|
|
||||||
|
|
||||||
handle_sigfpes
|
|
||||||
(
|
|
||||||
_ON,
|
|
||||||
_EN_DIVZERO
|
|
||||||
| _EN_INVALID
|
|
||||||
| _EN_OVERFL,
|
|
||||||
0,
|
|
||||||
_ABORT_ON_ERROR,
|
|
||||||
nullptr
|
|
||||||
);
|
|
||||||
|
|
||||||
sigActive_ = true;
|
sigActive_ = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
if (verbose)
|
if (verbose)
|
||||||
{
|
{
|
||||||
Info<< "trapFpe: Floating point exception trapping ";
|
Info<< "trapFpe: Floating point exception trapping ";
|
||||||
|
|||||||
Reference in New Issue
Block a user