[mesa-users] A question from pgstar's beauty salon

Robert Farmer rjfarmer at asu.edu
Tue Sep 8 19:19:35 EDT 2015


Hi Alfred
It turns out this is a limitation in fortran not mesa.

if x is an array(3)
then the following is valid in a namelist (which is what we use for the
inlist files) to set all elements to 1

x=1,1,1

x=3*1

x(1)=1
x(2)=1
x(3)=1

x(1)=1,1,1 !yes this works even though it looks like it should be invalid

Now i guess the confusion is the pgstar.defaults file has x=1 and also
x(:)=1 which sets all x elements to 1 but the default files are not
namelist files, but fortran code files (without the .f) thus they get
compiled into mesa during the top level ./mk. Therefore they can do the
array assignment syntax, but you cant use it in the pgstar inlist file.

So your best best would to do
profile_mass_point_symbol_scale(1)=1.0
profile_mass_point_symbol_scale(2)=1.0
profile_mass_point_symbol_scale(3)=1.0

Hope this helps, I learned something new about fortran and mesa today
looking this up :)

Rob



On Mon, Sep 7, 2015 at 12:50 PM, Alfred Gautschy <alfred at gautschy.ch> wrote:

> When using pgstar I do grid plots with a TRho-Profile panel. Along the
> star's log rho - log T locus I like to plot points indicating the
> respective mass depths in the models (see attached screenshot).
>
> I did not like the default choices of size of the mass point symbol:
> i.e. the  profile_mass_point_symbol_scale. I changed it in
> inlist_for_pgstar assuming that it works on *all* chosen mass points to
> be plotted. However, as seen in the attached screenshot the change of
> symbol_scale seems to affect only the first element of the vector
> containing the set of requested mass points (in the figure, it only
> affects the 0.5 M_star point).
>
> Grepping  "profile_mass_point_symbol_scale" in star/private/ I see it
> being ingested in the namelist (pgstar_ctrls_io.f90:1646), it is being
> assigned to the appropriate mesa structure in pgstar_ctrls_io.f90:4402
> and finally looped over (loop goes over the number of mass points to be
> plotted) to perform the actual pgplot action (pgstar_support.f90:1732).
> Nonetheless, I do not observe what I expect, namely that *all* mass
> point symbols sizes are changed (after all, the structure s% ... is
> assigned a real number, I presume). BTW: the same problem occurs with
> the label font-size to baptize the mass points.
>
> O.K. it's all just cosmetics - anyway, it bothers me. Is there anyone
> out there who can rectify me and press my nose on what I miss?
>
> Thanks,
> Alfred
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> 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/20150908/3071bc65/attachment.html>


More information about the Mesa-users mailing list