-
Notifications
You must be signed in to change notification settings - Fork 9
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
add convenience constructors for grids #1567
Conversation
The first question is: what should we name the aliases? Currently I've gone with the simplest possible names I could come up with:
One question is whether we should be a bit more specific on the names:
|
@OsKnoth suggested calling a |
The other interface questions:
|
I am a bit reluctant to simply call it a Some options:
|
|
Cubed Sphere Grid is used in the community, it is a discrete manifold, which approximates the sphere, also extruded grid is used normally, in all cases we start with two-dimensional manifolds and than go to the third dimension, furthermore this construction is connected to the function spaces (spectral versus piecewise constant in the third dimension, or piecewise linear for w), it makes no sense to look for new namings outside the community. |
@Sbozzolo any more thoughts on this? |
Can you please provide a short description on how I would go about identifying the |
f(grid::Grids.PlaneGrid) = ...
f(grid::Grids.BoxGrid) = ...
f(grid::Grids.ExtrudedCubedSphereGrid) = ... |
Are we going with I still think that As a next step, we should implement accessors: it should be trivial to get the radius from a sphere, the heigth of a column, and so on. |
How about |
Okay, I've renamed them. |
08b9d03
to
03c1e0c
Compare
@@ -66,6 +70,50 @@ end | |||
IntervalDomain(coords::ClosedInterval; kwargs...) = | |||
IntervalDomain(coords.left, coords.right; kwargs...) | |||
|
|||
|
|||
function XIntervalDomain(; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Sbozzolo what do you think about adding doc strings to all of these convenience constructors, so that users know what the kwargs are? I think just copying the code itself into the doc string should be pretty self explanatory, and it'll be easy to keep up-to-date.
03c1e0c
to
5876297
Compare
@charleskawczynski What is the status of this PR? |
I need to rebase this, and make a few changes |
701ad23
to
af0a8fe
Compare
Superseded by #1848. |
cc @Sbozzolo