Skip to content

Commit

Permalink
Add function and unit tests for boundary layer mixing
Browse files Browse the repository at this point in the history
For the near-boundary lateral mixing, the indices of the layers that
are spanned by the boundary layer need to be returned. Additionally,
in cases where the boundary layer intersects partway through a layer,
the non-dimensional position also needs to be returned for polynomial
reconstructions to be evaluated correctly. Six unit tests were added
to test this new function.

All unit tests currently pass
  • Loading branch information
ashao committed Sep 10, 2019
1 parent 654a12c commit 8385231
Show file tree
Hide file tree
Showing 2 changed files with 309 additions and 106 deletions.
12 changes: 8 additions & 4 deletions src/core/MOM_unit_tests.F90
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ module MOM_unit_tests

use MOM_error_handler, only : MOM_error, FATAL, is_root_pe

use MOM_string_functions, only : string_functions_unit_tests
use MOM_remapping, only : remapping_unit_tests
use MOM_neutral_diffusion, only : neutral_diffusion_unit_tests
use MOM_diag_vkernels, only : diag_vkernels_unit_tests
use MOM_string_functions, only : string_functions_unit_tests
use MOM_remapping, only : remapping_unit_tests
use MOM_neutral_diffusion, only : neutral_diffusion_unit_tests
use MOM_diag_vkernels, only : diag_vkernels_unit_tests
use MOM_boundary_lateral_mixing, only : near_boundary_unit_tests

implicit none ; private

Expand All @@ -35,6 +36,9 @@ subroutine unit_tests(verbosity)
"MOM_unit_tests: neutralDiffusionUnitTests FAILED")
if (diag_vkernels_unit_tests(verbose)) call MOM_error(FATAL, &
"MOM_unit_tests: diag_vkernels_unit_tests FAILED")
if (near_boundary_unit_tests(verbose)) call MOM_error(FATAL, &
"MOM_unit_tests: near_boundary_unit_tests FAILED")

endif

end subroutine unit_tests
Expand Down
Loading

0 comments on commit 8385231

Please sign in to comment.