Commit c632cb50 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Also check for floating-point underflow when running with '-e'

parent 81aee06b
......@@ -253,7 +253,7 @@ int main(int argc, char *argv[]) {
/* Do we choke on FP-exceptions ? */
if (with_fp_exceptions) {
feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW | FE_UNDERFLOW);
if (myrank == 0) message("Floating point exceptions will be reported.");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment