Skip to content

Commit

Permalink
fixed again
Browse files Browse the repository at this point in the history
  • Loading branch information
jagoosw committed Sep 16, 2023
1 parent de5f4d3 commit 3d409b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Boundaries/gasexchange.jl
Original file line number Diff line number Diff line change
Expand Up @@ -259,4 +259,4 @@ end

@inline get_value(x, y, t, air_concentration::Number) = air_concentration
@inline get_value(x, y, t, air_concentration::Function) = air_concentration(x, y, t)
@inline get_value(x, y, t, conc::Field{Center, Center, Center}) = interpolate(conc, Center(), Center(), Center(), conc.grid, x, y, 0)
@inline get_value(x, y, t, conc::Field{Center, Center, Center}) = interpolate(conc, Center(), Center(), Center(), conc.grid, x, y, 0.0)
2 changes: 1 addition & 1 deletion test/test_gasexchange.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function test_gas_exchange_model(grid, air_concentration)
set!(model, T = 15.0, S = 35.0, DIC = 2220, Alk = 2500)

# is everything communicating properly? (can't think of a way to not use allow scalar here)
value = CUDA.@allowscalar Oceananigans.getbc(model.tracers.DIC.boundary_conditions.top, 1.0, 1.0, grid, model.clock, fields(model))
value = CUDA.@allowscalar Oceananigans.getbc(model.tracers.DIC.boundary_conditions.top, 1, 1, grid, model.clock, fields(model))

@test value -0.0003 atol = 0.0001

Expand Down

0 comments on commit 3d409b8

Please sign in to comment.