Skip to content

Commit

Permalink
correected adapts again
Browse files Browse the repository at this point in the history
  • Loading branch information
jagoosw committed Nov 28, 2023
1 parent 68c1cc8 commit 355d9bd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/Walrus.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ export Tide, TidalForcing

using Adapt

import Adapt: adapt_structure

include("wall_model.jl")
include("radiative_transfer/radiative_transfer.jl")
include("tidal_forcings.jl")
Expand Down
1 change: 1 addition & 0 deletions src/radiative_transfer/radiative_transfer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ using KernelAbstractions.Extras: @unroll

import Oceananigans.Biogeochemistry: update_biogeochemical_state!, update_tendencies!, AbstractBiogeochemistry

import Adapt: adapt_structure
import Base: summary, show

RadiationField(grid, surface_flux) = CenterField(grid;
Expand Down
2 changes: 2 additions & 0 deletions src/tidal_forcings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ using Oceananigans.Coriolis: fᶠᶠᵃ, AbstractRotation
using Oceananigans.Forcings: Forcing
using Oceananigans.Units: hours

import Adapt: adapt_structure

"""
Tide(; x_amplitude,
y_amplitude,
Expand Down
2 changes: 1 addition & 1 deletion src/wall_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ using Oceananigans.BoundaryConditions: FluxBoundaryCondition
using Oceananigans.Fields: Center, Face
using Oceananigans.Grids: znode

import Adapt: adapt_structure
import Base: summary, show

"""
Expand Down Expand Up @@ -70,7 +71,6 @@ julia> boundary_conditions = (u = FieldBoundaryConditions(bottom = FluxBoundaryC
B :: FT = 5.2
end

adapt(to, ws::WallStress) = ws
adapt_structure(to, ws::WallStress) = ws

@inline stress_velocity(uₜ, params) = log(params.z₁ * uₜ / (params.ν + eps(0.0))) / (params.κ + eps(0.0)) + params.B - params.U₁ / (uₜ + eps(0.0))
Expand Down

0 comments on commit 355d9bd

Please sign in to comment.