[mesa-users] update on mesa platform dependency bugs: natural log function different on Mac 10.6.8 vs 10.8.5

Michael Zingale michael.zingale at stonybrook.edu
Sat Nov 23 18:07:36 EST 2013


Bill, does the mesasdk include its own version of the math library or are
each of them using the system math library to link?  I think that log is
provided in libm (which comes in via glibc), so if there were changes to
the system libraries, then perhaps you are detecting that?  Can you
reproduce it in a simple 1-line Fortran code that just computes that log?


On Sat, Nov 23, 2013 at 5:21 PM, Bill Paxton <paxton at kitp.ucsb.edu> wrote:

> Hi,
>
> This is an update on the battle to get the same answers from mesa on
> different platforms.
>
> As you may recall this started with the test case wd_cool_0.6M failing on
> some systems in spite of succeeding on mine.
>
> I've been slogging away at comparing wd_cool_0.6M on my Mac with OS X
> 10.6.8 vs Ed Brown's Mac with 10.8.5 -- both running the same mesa and
> mesasdk.
>
> We know they give different final results, but now I'm looking to find
> where the two computations 1st start to diverge.
>
> And it happens very early -- I find a tiny difference already on the 2nd
> newton iteration of the 1st timestep.
>
> After much searching, it turns out that the log of 4.8099321922881207D+26
> is different
> on 10.6.8: 6.1437895404626090D+01
> on 10.8.5: 6.1437895404626097D+01
>
> So who cares about that last crummy little digit?
> But that tiny difference changes the residual for the density equation for
> cell 627,
> and that leads tiny changes in the solutions for the densities and radii
> of nearby cells,
> and that makes tiny changes the net and the opacities and the eos,
> and .... if you keep going, the divergence keeps growing and spreading.
>
> So we really want to have zero tolerance for these differences.
>
> Perhaps someone knows some compiler flags that will get higher accuracy
> from the math routines?
>
> -Bill
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up
> now.
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> mesa-users mailing list
> mesa-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mesa-users
>
>


-- 
Michael Zingale
Associate Professor

Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY
11794-3800
*phone*:  631-632-8225
*e-mail*: Michael.Zingale at stonybrook.edu
*web*: http://www.astro.sunysb.edu/mzingale
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20131123/fae5b321/attachment.html>


More information about the Mesa-users mailing list