Skip to content

Conversation

@ZedThree
Copy link
Member

Because this method should be identical to ShiftedMetric, we can just parameterise the existing unit tests over the two types (although the FieldPerp overloads are not implemented so we have to skip those). This is in support of the work to parallelise in Z, by getting more tests on bits that that touches.

One important thing to note is that ZHermiteSpline (the z-only interpolation) explicitly doesn't do anything in any of the guards. This means that f.yup(mesh->yend + 1) does not get filled in. There's a comment the guards should be filled in by the boundary conditions, but I'm not actually sure that's true for the parallel slices.

In the second commit, I end up just masking the guards out basically, just to make the test pass.

If I instead comment out the region masking in ZInterpolation, and just use RGN_NOY instead, all the tests seem to pass, including the integrated tests that use MAST grids.

@dschwoerer @johnomotani Thoughts? Am I missing something why we can't just use RGN_NOY for the Z interpolation here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants