]> https://gitweb.dealii.org/ - dealii.git/commit
Use std::abs instead of abs. 5772/head
authorDavid Wells <wellsd2@rpi.edu>
Sat, 20 Jan 2018 21:52:42 +0000 (16:52 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 20 Jan 2018 22:34:01 +0000 (17:34 -0500)
commitb83b7797e6361512743ef3b8eeea5ab731d64496
treed10019f2850d9a0d0080fec17cc4092febf4f559
parent7f34047ff8771dec11d08796518879b8eb07f811
Use std::abs instead of abs.

On some compilers (notably GCC 4.8.4, in some configurations) 'abs' refers to
'int abs(int)', and gives the wrong answer for floating point arguments.
tests/base/function_parser_03.cc
tests/base/function_parser_04.cc
tests/bits/find_cell_12.cc
tests/codim_one/integrate_log_2.cc
tests/multigrid/transfer_04.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.