[ET Trac] [Einstein Toolkit] #1583: Carpet default poison value should not be NaN

Einstein Toolkit trac-noreply at einsteintoolkit.org
Wed Apr 23 06:17:19 CDT 2014


#1583: Carpet default poison value should not be NaN
-------------------------+--------------------------------------------------
 Reporter:  hinder       |       Owner:  eschnett           
     Type:  enhancement  |      Status:  new                
 Priority:  optional     |   Milestone:                     
Component:  Carpet       |     Version:  development version
 Keywords:               |  
-------------------------+--------------------------------------------------
 Carpet initialises Cactus variables to NaN as this is a quantity which is
 likely to be noticed.  However, this makes it impossible to know when you
 see a NaN whether you have a programming error (accessing uninitialised
 memory) or a numerical problem (numerical solution has blown up).

 I usually set the carpet poison value to something else; a value like
 10^230 is just as likely to be noticed as a NaN, and when you see exactly
 that value, you know that you are looking at uninitialised data, rather
 than a computation which went wrong.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1583>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list