Fix free for jac_solver

maint-1.1
sfilippone 1 year ago
parent 1dcb542e4a
commit 5fbdfb1436

@ -403,7 +403,10 @@ contains
info = psb_success_ info = psb_success_
call sv%a%free() call sv%a%free()
call sv%dv%free(info) if (allocated(sv%dv)) then
call sv%dv%free(info)
deallocate(sv%dv)
end if
if (allocated(sv%d)) deallocate(sv%d) if (allocated(sv%d)) deallocate(sv%d)
call psb_erractionrestore(err_act) call psb_erractionrestore(err_act)

@ -403,7 +403,10 @@ contains
info = psb_success_ info = psb_success_
call sv%a%free() call sv%a%free()
call sv%dv%free(info) if (allocated(sv%dv)) then
call sv%dv%free(info)
deallocate(sv%dv)
end if
if (allocated(sv%d)) deallocate(sv%d) if (allocated(sv%d)) deallocate(sv%d)
call psb_erractionrestore(err_act) call psb_erractionrestore(err_act)

@ -403,7 +403,10 @@ contains
info = psb_success_ info = psb_success_
call sv%a%free() call sv%a%free()
call sv%dv%free(info) if (allocated(sv%dv)) then
call sv%dv%free(info)
deallocate(sv%dv)
end if
if (allocated(sv%d)) deallocate(sv%d) if (allocated(sv%d)) deallocate(sv%d)
call psb_erractionrestore(err_act) call psb_erractionrestore(err_act)

@ -403,7 +403,10 @@ contains
info = psb_success_ info = psb_success_
call sv%a%free() call sv%a%free()
call sv%dv%free(info) if (allocated(sv%dv)) then
call sv%dv%free(info)
deallocate(sv%dv)
end if
if (allocated(sv%d)) deallocate(sv%d) if (allocated(sv%d)) deallocate(sv%d)
call psb_erractionrestore(err_act) call psb_erractionrestore(err_act)

Loading…
Cancel
Save