-
Notifications
You must be signed in to change notification settings - Fork 195
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 ConformalCubedSphere grid via MultiRegion module #2867
Conversation
So we need to have some "default connectivity" for the 6 panels, e.g., something like Oceananigans.jl/src/CubedSpheres/conformal_cubed_sphere_grid.jl Lines 37 to 115 in 0dc0a8a
and from that the connectivity amongst all ranks should be inferred, right? |
@simone-silvestri can you resolve the conflicts? I think they came up after merging #2888. |
|
src/Models/HydrostaticFreeSurfaceModels/update_hydrostatic_free_surface_model_state.jl
Outdated
Show resolved
Hide resolved
…e_surface_model_state.jl Co-authored-by: Simone Silvestri <silvestri.simone0@gmail.com>
…l into jmc-ss/cubed_sphere
I admit that I'm not quite satisfied with these: Oceananigans.jl/test/test_multi_region_cubed_sphere.jl Lines 9 to 65 in b9c9026
tests, mostly because looking at the code I can't understand what's happening -- they are not human-readable. I'll try to fix them. Perhaps @siddharthabishnu could you add docstring with some explanation? |
Shouldn't this be implemented with multiple dispatch? Chains of if-statements are the red flag. |
Yea, another issue of mine. |
I will add a docstring with some explanation, and replace some of the if-statements with multiple dispatch. |
What will you dispatch on though? |
I see your point. For dispatch, the argument types need to be different, which is not the case here. I used so many if statements to minimize the number of functions. I think I will just rewrite them in more readable way. |
This PR removes the CubedSpheres module and re-implements CubedSphere grid using the MultiRegion module. Furthermore, it improves the OrthogonalSphericalShellGrid.
Implemented in this PR
Outstanding issues
(Several issues will be opened as soon as this PR is merged for the following)
ξₗ, ξᵣ, ηₗ, ηᵣ
should be taken out from OrthogonalSphericalShellGrid or, even better, be grouped together into a propertyconformal_cubed_sphere
or something. This way, the OrthogonalSphericalShellGrid will be general and not necessarily tied to the conformal cubed sphere.YPartition