[Mesa-users] Giving MESA parameters from the command line

Adam Jermyn adamjermyn at gmail.com
Tue Jan 28 13:51:59 EST 2020


Hi Jeremy,

You can write a wrapper script to start up MESA runs with specific parameters. I usually make a ‘prototype’ MESA directory with inlists containing the parameters I’ll be changing. In the prototype directory I  set those to some placeholder like <<MASS>>. At runtime I copy the prototype directory and then use sed to replace each placeholder with the value I want.

If you want to get output directly from MESA without going through the history/profile files you can always add write statements to your run_star_extras.f. When I do this I usually add an identifiable string before the output so that I can easily search for the lines I need.

Hope this helps,

-Adam
On Jan 28, 2020, 1:45 PM -0500, Jeremy Sakstein <sakstein at hawaii.edu>, wrote:
> Hi Everyone,
>
> I am planning on using MESA as part of an MCMC chain and will likely have 100+ instances running in parallel.
>
> It would be a great help if it were possible to
>
> 1) Give MESA parameters form the command line rather than altering an inlist and
> 2) Having MESA spit out one or two outputs that I need (I only need three or four quantities from the first time step)
>
> Has anyone had any experience with this before? Is this possible or do I need to generate a bunch of inlists?
>
> Cheers,
>
> Jeremy
> _______________________________________________
> mesa-users at lists.mesastar.org
> https://lists.mesastar.org/mailman/listinfo/mesa-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20200128/f38393f4/attachment.htm>


More information about the Mesa-users mailing list