Open
Conversation
c04aad4 to
9194823
Compare
juliasloan25
commented
Jun 25, 2025
juliasloan25
commented
Jun 27, 2025
Member
|
@juliasloan25 how do I run the coupled simulation ? Is there a way to run it outside the caltech cluster (eg on a GPU system we have at MIT)? |
05c6433 to
845571c
Compare
d8b8872 to
7b17877
Compare
Member
Author
Sorry I just saw this - I get a lot of Github notifications so they get missed often. We have a docs page on running the coupled simulation. It shows how to run interactively or from the command line. You should be able to run it locally or on a different cluster, and it'll pick up the device to run on automatically (i.e. if a GPU is available it will run on GPU). Let me know if there are problems. |
022d2e7 to
c452c22
Compare
juliasloan25
commented
Sep 10, 2025
d04aa25 to
11addc7
Compare
11addc7 to
f5c917d
Compare
0c3bd1c to
0e186a1
Compare
juliasloan25
commented
Nov 13, 2025
| ## Remapper: Oceananigans `Center, Center` to Cubed sphere nodes | ||
| # Get the Oceananigans coordinates and put them on CPU | ||
| coords_oc = | ||
| OceananigansXESMFExt.xesmf_coordinates(grid, OC.Center(), OC.Center(), OC.Center()) |
Member
Author
There was a problem hiding this comment.
Suggested change
| OceananigansXESMFExt.xesmf_coordinates(grid, OC.Center(), OC.Center(), OC.Center()) | |
| XESMF.xesmf_coordinates(grid, OC.Center(), OC.Center(), OC.Center()) |
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Use a TripolarGrid instead of a capped lat/lon grid when constructing an Oceananigans simulation.
closes #1382
Note:
Oceananigans.Fields.interpolatedoesn't work for the TripolarGrid. We use this to remap Oceananigans fields from the OC grid to the ClimaCore field, so we can't switch to TripolarGrid until Oceananigans has a method that can regrid the TripolarGrid. This should be added in CliMA/ClimaOcean.jl#463 - requires Oceananigans v0.99.2.Note 2: Oceananigans is now using XESMF.jl to regrid for their TripolarGrid. This PR uses XESMF bilinear regridding to go from the Oceananigans grid to the ClimaCore boundary space. We continue to use ClimaCore.Remapping to go from ClimaCore to Oceananigans because it uses more information about the spectral element space than XESMF is able to. See this link for information about the limitations of using XESMF with spectral element spaces.
To-do
TripolarGridinstead ofLatitudeLongitudeGridInterfacer.get_remapper_to_ccthat retrieves the remapping object to get from a component model's grid to ClimaCore (this isnothingfor components that use ClimaCore, but for other components it's necessary to have access to the remapper object when remap is called)Additional notes
TripolarGridconstructs aOrthogonalSphericalShellGrid, which also uses lat/lon, so we can still use the same ClimaCore remapper to go from ClimaCore to Oceananigansset_from_extrinsic_vectors!