Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion unit_test_stubs/util/shr_abort_mod.abortthrows.F90
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module shr_abort_mod

contains

subroutine shr_abort_abort(string,rc)
subroutine shr_abort_abort(string,rc, line, file)
! Replacement for shr_abort_abort that throws a pfunit exception rather than aborting
!
! This can be used to test expected errors (i.e., failure testing).
Expand Down Expand Up @@ -43,6 +43,8 @@ subroutine shr_abort_abort(string,rc)
!----- arguments -----
character(len=*) , intent(in), optional :: string ! error message string
integer(shr_kind_in), intent(in), optional :: rc ! error code
integer(shr_kind_in), intent(in), optional :: line ! Line number in file (not used)
character(len=*), intent(in), optional :: file ! Fielename (not used)

!----- locals -----
integer(shr_kind_in) :: my_rc
Expand Down