[mesa-users] lnd_offset

Bill Paxton paxton at kitp.ucsb.edu
Thu Sep 22 12:44:35 EDT 2016


Hi Matthew,

This is yet another example of why comments in code are a bad thing. ;)

The relic mention of "lnd_offset" is a left over from a brief unproductive episode long ago.

As you discovered, there is no "lnd_offset" in the current system, just a bogus comment.

I'll go delete that now -- perhaps I should just delete all comments?

Cheers,
Bill



On Sep 22, 2016, at 7:27 AM, Matthew Clayton wrote:

> Hi there,
> 
> I'm using structure variables from s%xh(index, cell_number). The indices for this array are first defined in star/public/star_data.inc which defines the density index as
> 
>     integer :: i_lnd ! ln(cell density average by mass) + lnd_offset to keep value > 1
> 
> which implies that any values I get from s%xh( s%i_lnd, cell_number) will be offset by this value lnd_offset. A quick grep of the mesa directory doesn't turn up any other references to lnd_offset. Is this actually in use? If so, how do I find out what it is?
> 
> Cheers,
> 
> Matthew
> ------------------------------------------------------------------------------
> _______________________________________________
> mesa-users mailing list
> mesa-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mesa-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20160922/07c68451/attachment.html>


More information about the Mesa-users mailing list