Skip to content

Commit

Permalink
FE_INVALID
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpintarelli committed Jan 7, 2025
1 parent 81c951c commit 9ae5dd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nlcglib.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <Kokkos_Core.hpp>
#include <cfenv>
#include <iomanip>
#include <ios>
#include <iostream>
Expand Down Expand Up @@ -207,6 +208,8 @@ nlcg_us(EnergyBase& energy_base,
// std::feclearexcept(FE_ALL_EXCEPT);
// feenableexcept(FE_ALL_EXCEPT & ~FE_INEXACT &
// ~FE_UNDERFLOW); // Enable all floating point exceptions but FE_INEXACT

feenableexcept(FE_INVALID);
nlcg_info info;

Communicator comm_world(energy_base.comm_world());
Expand Down

0 comments on commit 9ae5dd9

Please sign in to comment.