[Mesa-users] [mesa-users] New SDK for OS X; fixes to PGPLOT issues

Willie Strickland cwskas at gmail.com
Fri Aug 18 11:55:06 EDT 2017

> On Aug 18, 2017, at 2:02 AM, Matthew Clayton <matthew.clayton at exeter.ox.ac.uk> wrote:
> If what you want is to save .png images of the plots, you need to use the file output options in pgstar. In particular, each plot has an associated file flag you can use in your pgstar inist (e.g. the HR plot's file flag is HR_file_flag), which is by default set to false, but if you set it to true then a .png image of the plot will be saved every time the plot updates. There are also other controls handling file names, locations etc that all have "_file_" in the name.

Another alternative which I often use is to add the following to your &star_job section

   ! display on-screen plots
   pgstar_flag = .true.
   save_pgstar_files_when_terminate = .true.

Then you can put in inlist_pgstar a description of the plots you want to save.

If you want to use the pgstar default setting for a plot you only need to add two lines to have the last window saved automatically.  For example

!         Grid1_win_flag = .true.
         Grid1_file_flag = .true.
         Grid1_file_cnt = 100000 ! some suitably large number to only save the last file

will save the last Grid1 window as a png in the png folder — the defaults.

If you want to change some default character of the plot you must add those as well.  For example

!         TRho_Profile_win_flag = .true.
         show_TRho_Profile_legend = .true.
         TRho_Profile_file_flag = .true.
         TRho_Profile_file_cnt = 100000

I am attaching an inlist_pgstar which I use regularly.  I just uncomment the plots that I want.

It is easy to turn on the windows on the fly by uncommenting the *_win_flag = .true. line to make sure the plot looks the way you want.

This feature is useful if you are running on a cluster for example and you want the the last pgstar output saved with the logs.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20170818/654872ad/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zinlist_pgstar
Type: application/octet-stream
Size: 1923 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20170818/654872ad/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20170818/654872ad/attachment-0001.html>

More information about the Mesa-users mailing list