Skip to content

Commit

Permalink
change arg names in routine check answers
Browse files Browse the repository at this point in the history
  • Loading branch information
mcallic2 committed Sep 20, 2023
1 parent 75f1359 commit 8413195
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test_fms/topography/test_topography.F90
Original file line number Diff line number Diff line change
Expand Up @@ -291,15 +291,15 @@ subroutine test_get_water_mask

end subroutine test_get_water_mask

subroutine check_answers(result, answer, what_error)
subroutine check_answers(calculated_answer, expected_answer, what_error)

implicit none
real(kind=TEST_TOP_KIND_) :: result ! value calculated from script
real(kind=TEST_TOP_KIND_) :: answer ! expected answer
character(*) :: what_error ! error message to print
real(kind=TEST_TOP_KIND_) :: calculated_answer ! value calculated from script
real(kind=TEST_TOP_KIND_) :: expected_answer ! expected answer
character(*) :: what_error ! error message to print

if (result .ne. answer) then
write(*,*) 'Expected ', answer, ' but computed ', result
if (calculated_answer.ne. expected_answer) then
write(*,*) 'Expected ', expected_answer, ' but computed ', calculated_answer
call mpp_error(FATAL, trim(what_error))
end if

Expand Down

0 comments on commit 8413195

Please sign in to comment.