|
From: Héctor MR <hec...@pi...> - 2016-12-09 19:03:15
|
Hi Gonçalo, You should be able to implement your own stopping condition in extras_finish_step/extras_check_model (located in run_star_extras.f). You can find more information here: http://mesa.sourceforge.net/run_star_extras.html#toc-2, http://jschwab.github.io/mesa-2015/ So you could do something like (untested) if ( (s % star_age .gt. min_age) .and. (s% log_surface_radius .gt. log_max_radius) ) then extras_check_model = terminate s% termination_code = t_xtra1 termination_code_str(t_xtra1) = 'my stopping condition holds' return end if Of course, you could also split your inlist in two and play with one of the default controls x_logical_ctrl(:), setting it to either true or false, but the first option looks easier to me. Hope this helps. -- H. |