-
Notifications
You must be signed in to change notification settings - Fork 39
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
[ci optional] Implemented Sunny Wong rotation brunt change #553
base: main
Are you sure you want to change the base?
Conversation
Hmmm, looks like we have another instance of a photo checksum failure without an fpe: https://testhub.mesastar.org/brunt_in_rotation/commits/69b4927/test_cases/star/ppisn I suspect there's something non-trivial going on related to the state of brunt-related quantities. |
Actually, it looks like this change is definitely not equivalent to the previous way of doing things. We have a line specifically skipping updates to mesa/star/private/hydro_vars.f90 Lines 596 to 598 in 3fb7174
mesa/star/private/solver_support.f90 Line 844 in 3fb7174
So the quantities we're trying to take advantage of here are actually going to become stale during solver iterations. I'll push an experimental commit getting rid of that check to see what testing looks like, but I'd definitely like some input from @orlox before proceeding with a merge. |
Actually, I'm realizing that was probably a red herring, as we don't update mixing info during solver iterations anyway, so it shouldn't matter if the brunt is getting updated during the iterations here. I'll revert that. The photo checksum failure does seem to be telling us something important, and it's happening quite consistently, so we'll have to track that down. |
ppisn was disabling the filling arrays with nans
If you diff the output of two runs it looks like there are differences immediately after the restart. So I'm guessing there is an issue with how the Brunt is computed at the start of a run that differs from how the old form worked. Also, https://testhub.mesastar.org/brunt_in_rotation/commits/e03088c/test_cases/star/ppisn shows it's not a parallelisation issue. |
Time smoothing needs mstar_old but after a restart we have s% generations=0 so no _old values.
We should be using nzlo:nzhi (though that its almost allways 1:s%nz) anyway. Also fill local allocatable arrays with nans to look for fpe's
@orlox and I discussed working on this some more today. Not clear on what our timeline will be yet, but I think we at least see a path forward that involves mostly trying to work through all the fpe's we can squash related to rotation and mixing. |
People seemed happy to merge this in #372 so let's check to see if the test suite passes and then merge it.
Closes #372