Skip to content

Commit b63d534

Browse files
committed
call xesmf_coordinates correctly [skip ci]
1 parent 40ca2a1 commit b63d534

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

experiments/ClimaEarth/components/ocean/oceananigans.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ Both objects contain a remapper object and relevant scratch space.
148148
149149
- Oceananigans to ClimaCore
150150
In this direction we use XESMF bilinear interpolation.
151+
Note that we assume the Oceananigans Field is on Center, Center, Center.
151152
152153
Example: remap the Oceananigans field `T` to the ClimaCore field `T_climacore`
153154
@@ -190,7 +191,8 @@ Returns:
190191
function construct_remappers(grid, boundary_space)
191192
## Remapper: Oceananigans `Center, Center` to Cubed sphere nodes
192193
# Get the Oceananigans coordinates and put them on CPU
193-
coords_oc = OceananigansXESMFExt.xesmf_coordinates(grid)
194+
coords_oc =
195+
OceananigansXESMFExt.xesmf_coordinates(grid, OC.Center(), OC.Center(), OC.Center())
194196
coords_oc = Dict(k => Array(v) for (k, v) in coords_oc)
195197

196198
# Get the latitude and longitude of each node on the boundary space

0 commit comments

Comments
 (0)