Skip to content

Commit

Permalink
fix check_errflg call
Browse files Browse the repository at this point in the history
  • Loading branch information
Courtney Peverley committed Aug 28, 2023
1 parent dc0402a commit 6819f2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/advection_test/test_host.F90
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,16 @@ subroutine test_host(retval, test_suites)
! Check that is_scheme_constituent works as expected
call test_host_ccpp_is_scheme_constituent('specific_humidity', &
is_constituent, errflg, errmsg)
call check_errflg(subname//"_ccpp_is_scheme_constituent", errflg, errmsg)
call check_errflg(subname//"_ccpp_is_scheme_constituent", errflg, &
errmsg, errflg_final)
! specific_humidity should not be an existing constituent
if (is_constituent) then
write(6, *) "ERROR: specific humidity is already a constituent"
end if
call test_host_ccpp_is_scheme_constituent('cloud_ice_dry_mixing_ratio', &
is_constituent, errflg, errmsg)
call check_errflg(subname//"_ccpp_is_scheme_constituent", errflg, errmsg)
call check_errflg(subname//"_ccpp_is_scheme_constituent", errflg, &
errmsg, errflg_final)
! cloud_ice_dry_mixing_ratio should be an existing constituent
if (.not. is_constituent) then
write(6, *) "ERROR: cloud_ice_dry_mixing ratio not found in ", &
Expand Down

0 comments on commit 6819f2e

Please sign in to comment.