Infobox math broken in current master

Dirk Hohndel dirk at hohndel.org
Tue Jan 21 11:27:58 UTC 2014


On Tue, 2014-01-21 at 19:00 +0100, Robert C. Helling wrote:
> On 21 Jan 2014, at 18:36, Dirk Hohndel <dirk at hohndel.org> wrote:
> 
> Dirk,
> 
> > But given where min and max come from, we know that they are either
> > identical, or at least 0.1 apart. So a division will ONLY create a NaN
> > if they are identical.
> 
> this is in the abstract axis code, so it is used for all kinds of graphs. Next time we might be plotting partial pressures in bar so the 0.1 assumption could fail there.
> 
> Will look into floating point specification and come back with this.

Sorry, Robert.

Yes, it might be 0.01 - or maybe even 0.001. But we don't do anything in
graphs that has a resolution anywhere close where 1 / size is going to
be NaN unless min and max are identical.

/D



More information about the subsurface mailing list