#1278: Handle inf and nan in parameter file parser
| Reporter: | Erik Schnetter |
| Status: | new |
| Milestone: | |
| Version: | |
| Type: | bug |
| Priority: | minor |
| Component: | Cactus |
Comment (by Roland Haas):
Not sure if that test ever actually tested for NaNs. At least `git log -G [Nn][Aa][Nn]' does not find anything. There is a test in NaNChecker that had to use some extra code to produce NaNs for it to find in git hash 837d426 "NaNChecker: use internally generated NaNs in test case" of cactusutils .
Should be enough to have a regex looking for nan and [+-]inf where the current regex expects the numeric part I suspect and (possibly) some extra code in the C++ code to convert those to NaN and inf, if that is not automatically done by the routine used to convert real number strings to double values.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/1278/handle-inf-and-nan-in-parameter-file