-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from adcroft/new_remapping_algorithm
New remapping algorithm
- Loading branch information
Showing
15 changed files
with
629 additions
and
578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
!> Invokes unit tests in all modules that have them | ||
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 | ||
|
||
contains | ||
|
||
!> Calls unit tests for other modules. | ||
!! Note that if a unit test returns true, a FATAL error is triggered. | ||
subroutine unit_tests(verbosity) | ||
! Arguments | ||
integer, intent(in) :: verbosity !< The verbosity level | ||
! Local variables | ||
logical :: verbose | ||
|
||
verbose = verbosity>=5 | ||
|
||
if (is_root_pe()) then ! The following need only be tested on 1 PE | ||
if (string_functions_unit_tests(verbose)) call MOM_error(FATAL, & | ||
"MOM_unit_tests: string_functions_unit_tests FAILED") | ||
if (remapping_unit_tests(verbose)) call MOM_error(FATAL, & | ||
"MOM_unit_tests: remapping_unit_tests FAILED") | ||
if (neutral_diffusion_unit_tests(verbose)) call MOM_error(FATAL, & | ||
"MOM_unit_tests: neutralDiffusionUnitTests FAILED") | ||
if (diag_vkernels_unit_tests(verbose)) call MOM_error(FATAL, & | ||
"MOM_unit_tests: diag_vkernels_unit_tests FAILED") | ||
endif | ||
|
||
end subroutine unit_tests | ||
|
||
end module MOM_unit_tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.