Skip to content

Commit

Permalink
sediment test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jagoosw committed Sep 18, 2023
1 parent 90d2dde commit d2e8cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_sediments.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function test_flat_sediment(grid, biogeochemistry, model; timestepper = :QuasiAd

# the sediment values are being integrated
initial_values = (N_fast = 0.0230, N_slow = 0.0807, C_fast = 0.5893, C_slow = 0.1677, N_ref = 0.0, C_ref = 0.0, N_storage = 0.0)
@test all([any(field .!= initial_values[name]) for (name, field) in pairs(model.biogeochemistry.sediment.fields)])
@test all([any(Array(interior(field)) .!= initial_values[name]) for (name, field) in pairs(model.biogeochemistry.sediment.fields)])

N₁ = total_nitrogen(biogeochemistry.underlying_biogeochemistry, model) * volume(1, 1, 1, grid, Center(), Center(), Center()) + total_nitrogen(biogeochemistry.sediment) * Azᶠᶜᶜ(1, 1, 1, grid)

Expand Down

0 comments on commit d2e8cc2

Please sign in to comment.