Repository navigation
update star dxh star pointer for solver when editing lnR - #1115
Merged
Merged
Conversation
Copy the reconstructed change in lnR to dxh_lnR so the radius equation evaluates the same displacement as the solver state.
Member
Author
|
I believe this mistake was introduced somewhere in svn between r12778 and r15140(has this issue) during a refactor. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Copy the reconstructed change in lnR to dxh_lnR so the radius equation evaluates the same displacement as the solver state. MESA was previously evaluating the radius residual and its derivative using the values stored before
edit_lnRreconstructed the radius.Generally, this appears to lower radius residuals in models with u and v flag, helping models converge. Hard to know how big of a change without detailed testing, but it should provide a minor boost to convergence in hydro models.
In my TDC Cepheid 9M test, this single change substantially reduced the radius residuals, however this model relies on hydro heavily, so the impact is more extreme .
I ran both of these models on a single core/thread on my M1-max macbook.
7.73 x 10^-71.24 x 10^-111.50 x 10^-123.18 x 10^-13