Skip to content
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

Support for Exchange between Faces #88

Merged
merged 16 commits into from
Feb 21, 2018
Merged

Support for Exchange between Faces #88

merged 16 commits into from
Feb 21, 2018

Conversation

rabernat
Copy link
Contributor

@rabernat rabernat commented Nov 26, 2017

This is a first draft at modifying xgcm's guts to allow for more complex grid geometries, such as the MITgcm LLC grids, cubed-sphere grids, etc.

cc @maikejulie, @jetesdal

@rabernat
Copy link
Contributor Author

This is currently very close. I just need to make it compatible with @jbusecke's grid generation module.

@rabernat
Copy link
Contributor Author

Just updating @maikejulie and @jetesdal that my latest commit (85cb3e2) enables the ability to interpolate and difference 2D c-grid vectors (e.g. u and v) from cell edges to cell centers. This is what you need in order to do the volume and tracer budgets.

What does not yet work is interpolating / differencing such vectors to the cell edges, such as for calculating vorticity. For various technical reasons, that turns out to be much more difficult.

The testing is pretty bare bones. And I definitely need to add more documentation. I am going to write a bit more documentation and then merge this, hopefully within a few days. I want to get this into your hands so I can get your feedback about the API and help finding bugs.

I just wanted to provide some evidence that I am, as promised, continuing to work on this (instead of sleeping).

@jbusecke
Copy link
Contributor

jbusecke commented Feb 2, 2018

Should I wait for fixing the grid generation stuff, until the interpolation works? I am asking since that is an essential part of what my module uses.

@rabernat
Copy link
Contributor Author

rabernat commented Feb 2, 2018

@jbusecke I don't understand your question.

@jbusecke
Copy link
Contributor

jbusecke commented Feb 2, 2018

My bad, I did not read carefully. I will take a look at it in the next days and see if I can get the grid generation to work.

@maikejulie
Copy link

maikejulie commented Feb 2, 2018 via email

@rabernat
Copy link
Contributor Author

rabernat commented Feb 2, 2018

The vorticity budgets will be super hard. This is due to the topology of the llc grid. Probably easier to discuss in person at ocean sciences.

@maikejulie
Copy link

maikejulie commented Feb 2, 2018 via email

@rabernat
Copy link
Contributor Author

rabernat commented Feb 2, 2018

Just to clarify where we are at, you can do all of those things now with xgcm, just excluding the points on the face edges.

@maikejulie
Copy link

maikejulie commented Feb 2, 2018 via email

@rabernat
Copy link
Contributor Author

Despite the broken tests (related to grid autogeneration), I would like to merge this PR in order to keep things moving forward. In particular, I know that @maikejulie and @ifenty are eager to try it out with the ECCOv4 tutorials. I will fix the autogeneration stuff in a future PR.

Would anyone like to provide a review before I merge?

@rabernat rabernat changed the title WIP: Support for Exchange between Faces Support for Exchange between Faces Feb 21, 2018
@rabernat rabernat merged commit 19b476c into xgcm:master Feb 21, 2018
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.

3 participants