Skip to content

Commit

Permalink
remove conflicting identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
simone-silvestri committed Jun 12, 2024
1 parent 8624a2f commit 8daa578
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/OrthogonalSphericalShellGrids.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ using KernelAbstractions.Extras.LoopInfo: @unroll
using Oceananigans.Grids: generate_coordinate

using Oceananigans.BoundaryConditions
using CUDA
using CUDA: @allowscalar

@inline convert_to_0_360(x) = ((x % 360) + 360) % 360

Expand Down
4 changes: 2 additions & 2 deletions src/grid_extensions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import Oceananigans.Fields: Field
import Oceananigans.Fields: tupled_fill_halo_regions!

# A tripolar grid is always between 0 and 360 in longitude!
x_domain(grid::TRG) = CUDA.@allowscalar 0, 360
y_domain(grid::TRG) = CUDA.@allowscalar minimum(grid.φᶠᶠᵃ), 90
x_domain(grid::TRG) = @allowscalar 0, 360
y_domain(grid::TRG) = @allowscalar minimum(grid.φᶠᶠᵃ), 90

# a `TripolarGrid` needs a `ZipperBoundaryCondition` for the north boundary
# The `sign` 1 for regular tracers and -1 for velocities and signed vectors
Expand Down

0 comments on commit 8daa578

Please sign in to comment.