Skip to content

Commit

Permalink
Minor updates to unit tests.
Browse files Browse the repository at this point in the history
Fixes #944.
  • Loading branch information
George Gayno committed Nov 15, 2024
1 parent 4327472 commit bda77cd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 3 additions & 1 deletion tests/ocean_merge/ftst_merge.F90
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
! Unit test for the merge routine.

!
! Test several combinations of lake and ocean attributes
! and check the 'merged' value for correctness.
program ftst_merge

implicit none
Expand Down
2 changes: 1 addition & 1 deletion tests/ocean_merge/ftst_read_lake_mask.F90
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
! Unit test for the read_lake_mask routine.
!
! Reads a 6x4 version of the lake mask file and
! Reads a 6x4 version of the lake mask NetCDF file and
! checks values from the lake fraction, lake depth
! and latitude records. If differences exceed a
! threshold, then the test fails.
Expand Down
9 changes: 6 additions & 3 deletions tests/ocean_merge/ftst_read_nml.F90
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
! Unit test for the read_nml routine.

!
! Read a sample namelist and check the data in each
! variable against expected values.
!
program read_namelist

implicit none
Expand All @@ -19,8 +22,8 @@ program read_namelist
if (trim(lake_mask_dir) /= "/lake/mask/dir") stop 4
if (trim(atmres) /= "C96") stop 6
if (trim(ocnres) /= "mx025") stop 8
if (trim(out_dir) /= "/out/dir") stop 8
if (binary_lake /= 1) stop 10
if (trim(out_dir) /= "/out/dir") stop 10
if (binary_lake /= 1) stop 12

print*, "OK"

Expand Down
2 changes: 1 addition & 1 deletion tests/ocean_merge/ftst_read_ocean_frac.F90
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
! Unit test for the read_ocean_frac routine.
!
! Reads a 6x5 version of the ocean mask file and
! Reads a 6x5 version of the MOM6 ocean mask file and
! checks values from the ocean fraction record.
! If differences exceed a threshold, then the test fails.
!
Expand Down

0 comments on commit bda77cd

Please sign in to comment.