[mesa-users] relax_initial_composition

Bill Paxton paxton at kitp.ucsb.edu
Thu Feb 26 19:53:08 EST 2015

Okay --- you want to know the evolution time elapsed during the relaxation, and there is no way to get it currently because the time is reset at the end of the relax operation.  At least that's my current guess as to your problem. ;D

I don't see a good way for you to get at that information in the current version; I'll add something for the next release.

As a slightly horrible workaround for the moment, you can patch the relax routine in star/private/relax.f90.
Search for the line 'if (restore_at_end) call restore_stuff'
Just before that add this line to save the time spent
	s% xtra1 = time ! s% time at start of relaxation
	s% xtra2 = s% time ! at end of relaxtion

Then in your run_star_extras, you can access the times to see how long the relaxation took.

Good luck,

On Feb 26, 2015, at 4:30 PM, Amber Lauer wrote:

> Hi Bill, I actually have 2 different models in the same folder with two different inlists, one is strictly for the relaxing. Then I restart the second model from the endpoint of the first. I'm not necessarily trying to limit it, or at least I would need to put a lower limit as well as upper because I actually need to know about how many years the relaxation took.
> On Thu, Feb 26, 2015 at 6:26 PM, Bill Paxton <paxton at kitp.ucsb.edu> wrote:
> Hi,
> If you are wanting to limit the number of years spent during converting the composition, then you might set the &control param max_years_for_timestep.
> After the conversion is complete, you'll probably want to change or remove the max timestep limit.  The easiest way is to stop the run with CTRL-C, edit the inlist, and restart with ./re ...
> If you want to do it "hands off", then you can of course make use of your run_star_extras routines.
> Hope that helps,
> Bill
> On Feb 26, 2015, at 3:52 PM, Amber Lauer wrote:
>> I'm using the relax_initial_composition option and I'm wondering how I can convert the number of steps to relaxation to a length of time in years, order of magnitude. As always, if someone can point me where I can figure it out myself, that info is just as appreciated as a direct answer.
>> -- 
>> Amber Lauer. M.S. Physics
>> PhD Student,
>> Dept. of Physics & Astronomy,
>> Louisiana State University
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for all
>> things parallel software development, from weekly thought leadership blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the 
>> conversation now. http://goparallel.sourceforge.net/_______________________________________________
>> mesa-users mailing list
>> mesa-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mesa-users
> -- 
> Amber Lauer. M.S. Physics
> PhD Student,
> Dept. of Physics & Astronomy,
> Louisiana State University

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20150226/70de22e9/attachment.html>

More information about the Mesa-users mailing list