[mesa-users] Writing GYRE output in extras_check_model

Josiah Schwab jwschwab at berkeley.edu
Mon Sep 19 11:47:38 EDT 2016


Hi Earl,

> I have a suite of routines that I use to post-process MESA and
> GYRE/ADIPLS outputs. I am running into a problem where I am sometimes
> getting pretty bizarre frequencies (e.g. all mixed modes on the main
> sequence of a low-mass star; non-smooth frequency separations; etc). I
> want to write an extras_check_model that checks for this condition and
> backs up if it is encountered. The problem is, GYRE outputs are only
> written after this point. So I am wondering: how can I write the GYRE
> output during the extras_check_model step so that I can process it
> with my external routines and determine whether or not I should
> backup?
>
> Or maybe I am going about this problem all wrong. Advice appreciated.

I haven't thought this through carefully or tried anything, but how
about either calling GYRE yourself (i.e., call do_gyre_get_modes) in
extras_check_model or if you need to write the file, look in
star/public/star_lib.f90 and see if calling one of those routines (i.e.,
star_write_gyre_data_to_file) in extra_check_model will get you what you
need.

Hope that helps,
Josiah




More information about the Mesa-users mailing list