[Mesa-users] Thank you and questions
Bill Paxton
paxton at kitp.ucsb.edu
Fri Oct 12 01:11:10 EDT 2018
> On Oct 11, 2018, at 9:57 PM, Piet Martens via Mesa-users <mesa-users at lists.mesastar.org> wrote:
>
> 6. I sort of get the idea of "s%", but can you give me the exact definition?
i’ll take this question and let other folks take the others.
the language lets us group a bunch of data together in a “structure”. we can have more than one instance of the structure in existence at once, so we need a way to “point” at the one we want. the variable “s" is a pointer to a structure holding data about the current model. the “s%” is just syntax to indicate that we are referencing something in the structure pointed to by s. for example, “s% model_number” is a the number of the model stored in the structure pointed to by s, and “s% dt” is the timestep, etc.
is that “exact” enough? for more info, you’ll need to get your hands dirty with a bit of programming. ;)
cheers
bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20181011/0e7b7f8e/attachment.html>
More information about the Mesa-users
mailing list