Enable fp-exceptions
[alexxy/gromacs.git] / src / programs / mdrun / runner.cpp
index 3e2d005fed07037b757fe43ab394b35833542c2a..9093d6c05787392ef6994d98e494034668c432e8 100644 (file)
@@ -1464,6 +1464,13 @@ int mdrunner(gmx_hw_opt_t *hw_opt,
                           (cr->duty & DUTY_PP) == 0,
                           inputrec->cutoff_scheme == ecutsVERLET);
 
+#ifndef NDEBUG
+    if (integrator[inputrec->eI].func != do_tpi &&
+        inputrec->cutoff_scheme == ecutsVERLET)
+    {
+        gmx_feenableexcept();
+    }
+#endif
     if (PAR(cr))
     {
         /* The master rank decided on the use of GPUs,