diff --git a/src/Boundaries/gasexchange.jl b/src/Boundaries/gasexchange.jl index 3cde0e6e1..d8e4f3781 100644 --- a/src/Boundaries/gasexchange.jl +++ b/src/Boundaries/gasexchange.jl @@ -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) \ No newline at end of file +@inline get_value(x, y, t, conc::Field{Center, Center, Center}) = interpolate(conc, Center(), Center(), Center(), conc.grid, x, y, 0.0) \ No newline at end of file diff --git a/test/test_gasexchange.jl b/test/test_gasexchange.jl index 573ce8316..d3ddf6443 100644 --- a/test/test_gasexchange.jl +++ b/test/test_gasexchange.jl @@ -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