[ET Trac] #1278: Handle inf and nan in parameter file parser

Roland Haas trac-noreply at einsteintoolkit.org
Mon Jan 10 14:47:33 CST 2022


#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](https://bitbucket.org/cactuscode/cactusutils/commits/837d4260c260870565b8054cdfc2470e96b61d15) "NaNChecker: use internally generated NaNs in test case" of [cactusutils](https://bitbucket.org/cactuscode/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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.einsteintoolkit.org/pipermail/trac/attachments/20220110/404c3a64/attachment.html 


More information about the Trac mailing list