Skip to content

Commit 71e0bb7

Browse files
Hallberg-NOAAmarshallward
authored andcommitted
+Add EOS_unit_tests
Added the new publicly visible function EOS_unit_tests, along with a call to it from inside of unit_tests. These tests evaluate check values for density and assess the consistency of expressions for variables that can be derived from density with finite-difference estimates of the same variables. These tests reveal inconsistencies or omissions with several of the options for the equation of state. The EOS self-consistency tests that are failing are commented out for now, so that this redacted unit test passes. All answers are bitwise identical, but there can be new diagnostic messages written out.
1 parent 5dffa7d commit 71e0bb7

File tree

2 files changed

+347
-3
lines changed

2 files changed

+347
-3
lines changed

src/core/MOM_unit_tests.F90

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module MOM_unit_tests
1111
use MOM_random, only : random_unit_tests
1212
use MOM_lateral_boundary_diffusion, only : near_boundary_unit_tests
1313
use MOM_CFC_cap, only : CFC_cap_unit_tests
14+
use MOM_EOS, only : EOS_unit_tests
1415
implicit none ; private
1516

1617
public unit_tests
@@ -30,6 +31,8 @@ subroutine unit_tests(verbosity)
3031
if (is_root_pe()) then ! The following need only be tested on 1 PE
3132
if (string_functions_unit_tests(verbose)) call MOM_error(FATAL, &
3233
"MOM_unit_tests: string_functions_unit_tests FAILED")
34+
if (EOS_unit_tests(verbose)) call MOM_error(FATAL, &
35+
"MOM_unit_tests: EOS_unit_tests FAILED")
3336
if (remapping_unit_tests(verbose)) call MOM_error(FATAL, &
3437
"MOM_unit_tests: remapping_unit_tests FAILED")
3538
if (neutral_diffusion_unit_tests(verbose)) call MOM_error(FATAL, &

0 commit comments

Comments
 (0)