|
|
@ -35,21 +35,23 @@
|
|
|
|
! POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
! POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
!
|
|
|
|
!
|
|
|
|
!
|
|
|
|
!
|
|
|
|
subroutine mld_c_jac_smoother_dmp(sm,ictxt,level,info,prefix,head,smoother,solver)
|
|
|
|
subroutine mld_c_jac_smoother_dmp(sm,desc,level,info,prefix,head,smoother,solver,global_num)
|
|
|
|
|
|
|
|
|
|
|
|
use psb_base_mod
|
|
|
|
use psb_base_mod
|
|
|
|
use mld_c_jac_smoother, mld_protect_nam => mld_c_jac_smoother_dmp
|
|
|
|
use mld_c_jac_smoother, mld_protect_nam => mld_c_jac_smoother_dmp
|
|
|
|
implicit none
|
|
|
|
implicit none
|
|
|
|
class(mld_c_jac_smoother_type), intent(in) :: sm
|
|
|
|
class(mld_c_jac_smoother_type), intent(in) :: sm
|
|
|
|
integer(psb_ipk_), intent(in) :: ictxt,level
|
|
|
|
type(psb_desc_type), intent(in) :: desc
|
|
|
|
|
|
|
|
integer(psb_ipk_), intent(in) :: level
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
character(len=*), intent(in), optional :: prefix, head
|
|
|
|
character(len=*), intent(in), optional :: prefix, head
|
|
|
|
logical, optional, intent(in) :: smoother, solver
|
|
|
|
logical, optional, intent(in) :: smoother, solver, global_num
|
|
|
|
integer(psb_ipk_) :: i, j, il1, iln, lname, lev
|
|
|
|
integer(psb_ipk_) :: i, j, il1, iln, lname, lev
|
|
|
|
integer(psb_ipk_) :: icontxt,iam, np
|
|
|
|
integer(psb_ipk_) :: ictxt,iam, np
|
|
|
|
character(len=80) :: prefix_
|
|
|
|
character(len=80) :: prefix_
|
|
|
|
character(len=120) :: fname ! len should be at least 20 more than
|
|
|
|
character(len=120) :: fname ! len should be at least 20 more than
|
|
|
|
logical :: smoother_
|
|
|
|
integer(psb_lpk_), allocatable :: iv(:)
|
|
|
|
|
|
|
|
logical :: smoother_, global_num_
|
|
|
|
! len of prefix_
|
|
|
|
! len of prefix_
|
|
|
|
|
|
|
|
|
|
|
|
info = 0
|
|
|
|
info = 0
|
|
|
@ -59,7 +61,7 @@ subroutine mld_c_jac_smoother_dmp(sm,ictxt,level,info,prefix,head,smoother,solve
|
|
|
|
else
|
|
|
|
else
|
|
|
|
prefix_ = "dump_smth_c"
|
|
|
|
prefix_ = "dump_smth_c"
|
|
|
|
end if
|
|
|
|
end if
|
|
|
|
|
|
|
|
ictxt = desc%get_context()
|
|
|
|
call psb_info(ictxt,iam,np)
|
|
|
|
call psb_info(ictxt,iam,np)
|
|
|
|
|
|
|
|
|
|
|
|
if (present(smoother)) then
|
|
|
|
if (present(smoother)) then
|
|
|
@ -67,6 +69,11 @@ subroutine mld_c_jac_smoother_dmp(sm,ictxt,level,info,prefix,head,smoother,solve
|
|
|
|
else
|
|
|
|
else
|
|
|
|
smoother_ = .false.
|
|
|
|
smoother_ = .false.
|
|
|
|
end if
|
|
|
|
end if
|
|
|
|
|
|
|
|
if (present(global_num)) then
|
|
|
|
|
|
|
|
global_num_ = global_num
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
global_num_ = .false.
|
|
|
|
|
|
|
|
end if
|
|
|
|
lname = len_trim(prefix_)
|
|
|
|
lname = len_trim(prefix_)
|
|
|
|
fname = trim(prefix_)
|
|
|
|
fname = trim(prefix_)
|
|
|
|
write(fname(lname+1:lname+5),'(a,i3.3)') '_p',iam
|
|
|
|
write(fname(lname+1:lname+5),'(a,i3.3)') '_p',iam
|
|
|
@ -74,8 +81,14 @@ subroutine mld_c_jac_smoother_dmp(sm,ictxt,level,info,prefix,head,smoother,solve
|
|
|
|
|
|
|
|
|
|
|
|
if (smoother_) then
|
|
|
|
if (smoother_) then
|
|
|
|
write(fname(lname+1:),'(a,i3.3,a)')'_l',level,'_nd.mtx'
|
|
|
|
write(fname(lname+1:),'(a,i3.3,a)')'_l',level,'_nd.mtx'
|
|
|
|
if (sm%nd%is_asb()) &
|
|
|
|
if (global_num_) then
|
|
|
|
& call sm%nd%print(fname,head=head)
|
|
|
|
iv = desc%get_global_indices(owned=.false.)
|
|
|
|
|
|
|
|
if (sm%nd%is_asb()) &
|
|
|
|
|
|
|
|
& call sm%nd%print(fname,head=head,iv=iv)
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
if (sm%nd%is_asb()) &
|
|
|
|
|
|
|
|
& call sm%nd%print(fname,head=head)
|
|
|
|
|
|
|
|
end if
|
|
|
|
end if
|
|
|
|
end if
|
|
|
|
! At base level do nothing for the smoother
|
|
|
|
! At base level do nothing for the smoother
|
|
|
|
if (allocated(sm%sv)) &
|
|
|
|
if (allocated(sm%sv)) &
|
|
|
|