]> https://gitweb.dealii.org/ - dealii.git/commit
Verify that a number is not a NaN before testing for finiteness.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 29 Jun 2015 22:59:54 +0000 (17:59 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 30 Jun 2015 14:28:38 +0000 (09:28 -0500)
commitb251f41e5b6d1302d463fce23e54a503d58ab4a7
treeb4440fb5840007c23d2d6cb8f68a9f457e5a7a47
parent54700b72f5de2a90354d07c10858be4b90dba8c0
Verify that a number is not a NaN before testing for finiteness.

While not intuitive, std::isfinite triggers a floating point exception when called
on a signalling NaN. Avoid this.
source/base/config.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.