Skip to content

Commit

Permalink
adapting to new oceananigans
Browse files Browse the repository at this point in the history
  • Loading branch information
simone-silvestri committed Dec 1, 2023
1 parent 762445f commit 55b2484
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/bathymetry_and_forcings.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Oceananigans.Grids: φnode
using Oceananigans.Distributed
using Oceananigans.Distributed: DistributedGrid, partition_global_array
using Oceananigans.DistributedComputations
using Oceananigans.DistributedComputations: DistributedGrid, partition_global_array
using Oceananigans.Operators
using DataDeps

Expand Down
2 changes: 1 addition & 1 deletion src/boundary_and_initial_conditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ using Oceananigans.Units
using Oceananigans.Utils
using Oceananigans.Grids: halo_size
using Oceananigans.Architectures: arch_array, architecture
using Oceananigans.Distributed: partition_global_array
using Oceananigans.DistributedComputations: partition_global_array

initialize_model!(model, ::Val{:Quiescent}; kw...) = nothing

Expand Down
6 changes: 5 additions & 1 deletion src/near_global_simulation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ function scaling_test_simulation(resolution, ranks, Δt, stop_time;

vertical_diffusivity = VerticalScalarDiffusivity(VerticallyImplicitTimeDiscretization(), precision; ν=νz, κ=κz)

tracer_advection = WENO(grid; order = 7)
tracer_advection = Oceananigans.Advection.ThreeDimensionalTracerAdvection(;
x = WENO(precision; order = 7),
y = WENO(precision; order = 7),
z = Centered(precision))

momentum_advection = best_momentum_advection(grid, precision)

free_surface = SplitExplicitFreeSurface(precision; substeps = barotropic_substeps(max_Δt, grid))
Expand Down

0 comments on commit 55b2484

Please sign in to comment.