From 8c880c34ffec460baeca9160bb58850ca727d73f Mon Sep 17 00:00:00 2001 From: Jago Stong-Wright Date: Fri, 15 Sep 2023 16:21:44 +0100 Subject: [PATCH] gas exchange test still not running --- test/test_gasexchange.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_gasexchange.jl b/test/test_gasexchange.jl index 097465541..7cf556d12 100644 --- a/test/test_gasexchange.jl +++ b/test/test_gasexchange.jl @@ -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)