Fix error_impl, and add check_error()

This commit is contained in:
Salvatore Filippone
2021-02-05 09:50:02 +01:00
parent fdd1da6fa1
commit aeb1397e9f
4 changed files with 38 additions and 6 deletions
+8 -5
View File
@@ -46,11 +46,14 @@ subroutine psb_par_error_handler(ctxt,err_act)
call psb_erractionrestore(err_act)
if (err_act == psb_act_print_) &
& call psb_error(ctxt, abrt=.false.)
if (err_act == psb_act_abort_) &
& call psb_error(ctxt, abrt=.true.)
if (err_act == psb_act_print_) then
call psb_error(ctxt, abrt=.false.)
else if (err_act == psb_act_ret_) then
! do nothing
else
call psb_error(ctxt, abrt=.true.)
end if
return
end subroutine psb_par_error_handler