Added coefficient-origin support to exp_fields.cc#593
Conversation
|
Thanks, Martin! I added a test for this and confirmed that it passes locally with your EXP change. We'll also need to figure out what Gala branch to merge this into. Since it depends on EXP/devel, I think our idea from last year was that we would use Gala/devel. But that branch doesn't exist anymore; see #585. So I think I would suggest that we either (1) bring back the gala/devel branch or (2) give up on the idea of running CI against a tagged EXP version and just always run CI against EXP/devel. Probably a question for @adrn. |
|
Thanks. Not sure about the best choice for branches. We could make an exception to the written EXP policy: Probably shouldn't over think this and do what makes the most sense to have EXP and Gala interoperate as intended. Maybe @michael-petersen would like to comment on this? |
|
We've now set up EXP 7.10 to address this, which is currently I think it makes sense to point at the |
|
A follow up question/comment: it would be ideal to have either Gala or EXP (possibly both) to test compatibility as part of CI. Any thoughts on the best strategy for this? I second Mike's though about Gala pointing at
So pointing any Gala+EXP CI at |
|
@adrn confirmed that the
|
… Foote's MWE. Co-authored-by: Lehman Garrison <lgarrison@flatironinstitute.org>
Needed for EXP's getFieldsOrigin() API, which returns the fields with respect to the user's setCoefCenter() call.
|
@adrn This should be pretty straightforward to review, the main thing to note is that the EXP version requirement is changing. |
adrn
left a comment
There was a problem hiding this comment.
Right, thanks for the help on this @lgarrison - and thanks for the changes @The9Cat !
Describe your changes
This allows Gala to evaluate the EXP potential using the coordinate origin supplied by the coefficients
Details
The EXP ui assumes that the user wants field evaluations in the coordinate system of the expansion by default. For an absolute coordinate system with an arbitrary the expansion center, EXP needs to be told apply the translation. This is now done automatically for the
getAccel()member which was added explicitly to support Gala so does not break EXP workflows and a new member,getFieldsOrigin()which isgetFields()in the frame with the coefficient-origin translation.Tests
Checked against Hayden Foote's MWE illustrating the issue
Note
This depends on the changes from EXP-code/EXP#219. When we are all in agreement, this PR will be merged into devel.