[Mesa-users] Giving MESA parameters from the command line
Adam Jermyn
adamjermyn at gmail.com
Tue Jan 28 15:10:46 EST 2020
If you want to run multiple parallel instances on one folder it could get tricky. If you’re okay with one folder per MCMC chain you can just clean the directory and change the parameter value between runs.
-Adam
On Jan 28, 2020, 3:08 PM -0500, Jeremy Sakstein <sakstein at hawaii.edu>, wrote:
> Thanks for all your help. I think my output problems are sorted.
>
> On the input side, I really would like to have one directory and not thousands. Is there anyway to do this in your experience?
>
> Cheers,
>
> Jeremy
>
> > On Tue, Jan 28, 2020 at 8:52 AM Adam Jermyn <adamjermyn at gmail.com> wrote:
> > > 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/5ab564bb/attachment.htm>
More information about the Mesa-users
mailing list