Skip to content

Commit

Permalink
gas exchange test still not running
Browse files Browse the repository at this point in the history
  • Loading branch information
jagoosw committed Sep 15, 2023
1 parent 49282b3 commit 8c880c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_gasexchange.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ end
@test (mean(pCO₂_err) < 10 && std(pCO₂_err) < 15)
end

@inline conc_function(x, y, t) = 413.0 + 10.0 * sin(t * π / (1year))

@testset "Gas exchange coupling" begin
grid = RectilinearGrid(architecture; size=(1, 1, 2), extent=(1, 1, 1))
conc_field = CenterField(grid, indices=(:, :, grid.Nz))
conc_field .= 413.0 + 1.0 * rand()
conc_function(x, y, t) = 413.0 + 10.0 * sin(t * π / (1year))
for air_concentration in [413.1, conc_function, conc_field]
@info "Testing with $(typeof(air_concentration))"
test_gas_exchange_model(grid, air_concentration)
Expand Down

0 comments on commit 8c880c3

Please sign in to comment.