Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Gregory L. Wagner <[email protected]>
  • Loading branch information
giordano and glwagner committed Feb 15, 2025
1 parent 4639fa1 commit 8b2c516
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ CFTime = "179af706-886a-5703-950a-314cd64e0468"
ClimaOcean = "0376089a-ecfe-4b0e-a64f-9c555d74d754"
Oceananigans = "9e8cae18-63c1-5223-a75c-80ca9d6e9a09"
OrthogonalSphericalShellGrids = "c2be9673-fb75-4747-82dc-aa2bb9f4aed0"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Reactant = "3c362404-f566-11ee-1572-e11a4b42c853"
Reactant_jll = "0192cb87-2b54-54ad-80e0-3be72ad8a3c0"
3 changes: 3 additions & 0 deletions oceananigans-dynamical-core/super_simple_simulation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ using Oceananigans
using Reactant
using Libdl
using Reactant_jll
using Random

Reactant.Ops.DEBUG_MODE[] = true
# ENV["JULIA_DEBUG"] = "Reactant_jll"
Expand All @@ -23,8 +24,10 @@ r_model = HydrostaticFreeSurfaceModel(; grid=r_grid, momentum_advection=WENO())
@assert model.free_surface isa SplitExplicitFreeSurface
@assert r_model.free_surface isa SplitExplicitFreeSurface

Random.seed!(123)
uᵢ(x, y, z) = randn()
set!(model, u=uᵢ, v=uᵢ)
Random.seed!(123)
set!(r_model, u=uᵢ, v=uᵢ)

# What we normally do:
Expand Down

0 comments on commit 8b2c516

Please sign in to comment.