Pass zShift to ShiftedMetric constructor - #1395
Conversation
Moved into `Mesh::setParallelTransform`. `ShiftedMetric` ctor now explicitly takes zShift. If you're calling the ctor yourself, you probably know what you're doing. This allows greater separation between ShiftedMetric and Mesh
|
I've been wondering if This would be an alternative way to keep backward compatibility, since you wouldn't need to pass zShift to the constructor at all, just fetch it from |
|
That is a bit painful. I'm not sure about putting What if we moved all the internal variables into a
@d7919 @johnomotani does that sound workable? |
|
@ZedThree I think of I think the struct+map thing sounds good, but is not enough to make -- |
Another option might be to make |
|
We really need to sit down and properly design how all these systems should interact, and what belongs to what. @d7919 has suggested that the whole parallel transform needs to be moved into Closing this as #1413 achieves the same thing, but is backwards compatible |
Moved the logic for getting zShift from the grid file, etc., into
Mesh::setParallelTransform.ShiftedMetricctor now explicitly takes zShift, which technically breaks backwards compatibility, but if you're calling the ctor yourself, you probably know what you're doing?We could keep backwards compatibility by moving all the ctor logic into a separate
initmethod or something (can't just call the other ctor as wezShiftfirst)This allows greater separation between ShiftedMetric and Mesh which should make it easier to test ShiftedMetric