[enhancement] MESA grid running rewrite #802
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR revamps how POSYDON builds the MESA run directories.
The goal of this PR is to create a more manageable and modular infrastructure.
This includes a cleaner POSYDON-MESA-INLISTS repository, and a more obvious configuration file setup.
So far I've kept the output of this rewrite the same as what it was before. This means that additional files and folders are still created, i.e. a binary folder is still present for a single star run.
I want to focus on specifically reproducing our previous setup, because the
posydon-run-gridsis a separate function with different requirements, and rewriting the logic inposydon-setup-gridsis already quite the challenge.At this moment (10/02/2026), I have had to reduce the functionality from reading the posydon inlists. I've hard-coded the read-in of the He-star formation, because this drastically simplified the logic in generating the inlist chain. This means that we cannot arbitrarily add "inlist_stepX" to the "star_formation" folder in the POSYDON repository. Note: "star_formation" here means pre-main evolution steps; not actual star formation!
We can reintroduce this if needed.
I've also been unable to test the dynamic-grid setup.
Currently, the code reproduces similar grid run setups files as those on yggdrasil.
There are only a few more tasks to complete: