mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-17 03:12:15 +00:00
Fix error_impl, and add check_error()
This commit is contained in:
@@ -162,6 +162,7 @@ module psb_error_mod
|
||||
logical, save :: comm_global_checks = .false.
|
||||
|
||||
contains
|
||||
|
||||
subroutine psb_set_global_checks(val)
|
||||
logical, intent(in), optional :: val
|
||||
|
||||
@@ -182,7 +183,16 @@ contains
|
||||
|
||||
val = comm_global_checks
|
||||
end function psb_get_global_checks
|
||||
|
||||
|
||||
subroutine psb_check_error(ctxt,abrt)
|
||||
implicit none
|
||||
type(psb_ctxt_type), intent(in) :: ctxt
|
||||
logical, optional, intent(in) :: abrt
|
||||
|
||||
if (psb_errstatus_fatal()) then
|
||||
call psb_error(ctxt,abrt)
|
||||
end if
|
||||
end subroutine psb_check_error
|
||||
|
||||
! saves action to support error traceback
|
||||
! also changes error action to "return"
|
||||
|
||||
Reference in New Issue
Block a user