[Mesa-users] Modify close_gaps subroutine

Simon Guichandut simon.guichandut at mail.mcgill.ca
Wed Nov 9 23:05:51 UTC 2022


Hello MESA users,

There is a simple modification that I would like to do to the "close_gaps" subroutine in star/private/mix_info.f90.  In particular, I want to limit the application of this routine to some user-defined range of pressures.  This would be easy enough to do in the source code itself, but I would prefer doing it cleanly by using a "hook" to call my modified version in run_star_extras.  As far as I can tell though, there is no existing hook for this specific function.

What would be the easiest way to create such a hook?  I see that people have created their own hooks in mesa-contrib, but it's not clear to me how these are set up, and when those routines are called.  Crucially, I would want my "other_close_gaps" to be called instead of "close_gaps", but at the same time during the step (and not e.g. at the end of the step).

Thank you,
Simon Guichandut

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20221109/215548d9/attachment.htm>


More information about the Mesa-users mailing list