-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pgstar inlist arrays #552
base: main
Are you sure you want to change the base?
Pgstar inlist arrays #552
Conversation
…ray index each window is
is setenv MESA_FORCE_PGSTAR_FLAG true sufficient for these changes get tested within the test suite? |
# Conflicts: # star/defaults/pgstar.defaults
Promoted this out of draft status. |
show_History_Track_annotation1(:) = .false. | ||
show_History_Track_annotation2(:) = .false. | ||
show_History_Track_annotation3(:) = .false. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we want this to become a 2d array (I.e. show_History_Track_annotation(:,:) = .false.
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know exactly? Philosophically, these are different, as there aren't pgstar_array_length
of them, only 3. I'd leave this as is.
Do you have a list of the regular expressions/find+replace commands you used to make the changes? I've set up a little sandbox to start experimenting but figured I'd just be reinventing what you've already done if you used regexes in the first place. |
I have not, I used the find and replace feature of my IDE to do most of the renaming. @mjoyceGR sent me a good starting point to also get into
If this covers everything, then what remains is to repeat this for |
That's helpful, thanks! I've just been experimenting with that in my sandbox and currently have
where I'll try to construct my test data a bit more carefully and iterate again in the next few days but I think this covers most cases. |
What is the status of this PR? Is it nearly ready to go? I can help fix conflicts with main (a lot of it is due to removing unused variables in star, or updates and formatting to inlists) and check the |
I think it's worth fixing the conflicts with My previous comment is as far as I got with It's probably worth a look now that we've just made a release. We should have at least a few months to bash our own heads against this before it becomes part of another release. |
I fixed conflicts with main. And applied seds to inlists I could find with grepping. Perhaps we could merge into main after we take another look for outstanding inlists and add an sed script to help users change their inlists, + online documentation, so that it can start being tested before next release? |
I'm getting a little bit of MESA momentum back but will be under some time pressure until at least October 10. What are the specific actions here? I'm guessing I can test the
If there are failures, we can then fix them, rinse and repeat. If not, we're basically most of the way we can get in terms of how well the test suite currently covers all the PGstar options, at which point I think we're okay to merge. |
Large refactor of the pgstar infrastructure (put as draft for now).
The main change is to have the windows with multiple entries (
Text_Summary(1-9), History_track(1-9), History_panels(1-9), Color_magnitude(1-9), Grid(1-9)).
be (mostly) handled in arrays, in the spirit of #368. This reduces the required defaults by several thousands of lines, and cleans up the*.f90
files of the affected windows, aiding code maintenance.Only thing that isn't yet possible is having procedure pointers in an array, which means that the decorator pointers are unaffected. As a matter of fact, I would like to push for dropping support for these functions; if users want custom plotting/annotations, I feel like they are much better off using their own library. This would further simplify our
pgstar
implementation.I need help again however from the
sed
wizards for devising clever substitution scripts, where not onlyGrid2_*
is changed toGrid_*(2)
, but alsoGrid2_*(1)
toGrid_*(2, 1)
, etc.