Skip to content
Snippets Groups Projects
Commit e87ea92e authored by Santiago Ospina De Los Ríos's avatar Santiago Ospina De Los Ríos
Browse files

Merge branch 'bugfix/mac-2' into 'master'

Use  feraiseexcept on windows and mac for floating point exceptions

See merge request core/dune-istl!549
parents 6a8d573f 6d26998e
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@ Copyright holders:
2018--2022 Lukas Renelt
2021--2022 Santiago Ospina De Los Ríos
2008--2013 Uli Sack
2023 Vaishnavi Sanchi
2004--2021 Oliver Sander
2015--2019 Linus Seelinger
2013 Bård Skaflestad
......
......@@ -101,11 +101,11 @@ int main(int argc, char** argv){
}
if(config.get("FP_EXCEPT", false))
#if defined( __APPLE__ ) or defined( __MINGW32__ )
DUNE_THROW(NotImplemented, "Floating exceptions handling are not available on this system");
#else
feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);// | FE_UNDERFLOW);
#endif
#if not defined( __APPLE__ ) and not defined( __MINGW32__ )
feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);// | FE_UNDERFLOW);
#else
feraiseexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);// | FE_UNDERFLOW);
#endif
int verbose = config.get("verbose", 1);
if(mpihelper.rank() > 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment