[mesa-users] lnd_offset
Kent G. Budge
kgbudge at lanl.gov
Thu Sep 22 13:04:25 EDT 2016
There is actually a school of thought that well-written code should not
/need/ documentation. It should be obvious to someone looking at the
code what it does.
I don't actually buy this for a minute. Just thought it was worth
mentioning for the chuckles.
On 09/22/2016 11:00 AM, Matthew Clayton wrote:
> Hi Bill,
>
> Thanks for sorting that out.
>
> Cheers,
>
> Matthew
> ------------------------------------------------------------------------
> *From:* Bill Paxton [paxton at kitp.ucsb.edu]
> *Sent:* 22 September 2016 17:44
> *To:* Matthew Clayton
> *Cc:* mesa-users at lists.sourceforge.net
> *Subject:* Re: [mesa-users] lnd_offset
>
> 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
>> <mailto:mesa-users at lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/mesa-users
>
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> mesa-users mailing list
> mesa-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mesa-users
--
Kent G. Budge
CCS-2, LANL
/A program is a spell cast over a computer, turning input into error
messages/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20160922/8b1478d5/attachment.html>
More information about the Mesa-users
mailing list