You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
Fortran
43 lines
1.2 KiB
Fortran
subroutine mld_z_base_smoother_dmp(sm,ictxt,level,info,prefix,head,smoother,solver)
|
|
|
|
use psb_base_mod
|
|
use mld_z_base_smoother_mod, mld_protect_name => mld_z_base_smoother_dmp
|
|
implicit none
|
|
class(mld_z_base_smoother_type), intent(in) :: sm
|
|
integer, intent(in) :: ictxt,level
|
|
integer, intent(out) :: info
|
|
character(len=*), intent(in), optional :: prefix, head
|
|
logical, optional, intent(in) :: smoother, solver
|
|
integer :: i, j, il1, iln, lname, lev
|
|
integer :: icontxt,iam, np
|
|
character(len=80) :: prefix_
|
|
character(len=120) :: fname ! len should be at least 20 more than
|
|
logical :: smoother_
|
|
! len of prefix_
|
|
|
|
info = 0
|
|
|
|
if (present(prefix)) then
|
|
prefix_ = trim(prefix(1:min(len(prefix),len(prefix_))))
|
|
else
|
|
prefix_ = "dump_smth_z"
|
|
end if
|
|
|
|
call psb_info(ictxt,iam,np)
|
|
|
|
if (present(smoother)) then
|
|
smoother_ = smoother
|
|
else
|
|
smoother_ = .false.
|
|
end if
|
|
lname = len_trim(prefix_)
|
|
fname = trim(prefix_)
|
|
write(fname(lname+1:lname+5),'(a,i3.3)') '_p',iam
|
|
lname = lname + 5
|
|
|
|
! At base level do nothing for the smoother
|
|
if (allocated(sm%sv)) &
|
|
& call sm%sv%dump(ictxt,level,info,solver=solver,prefix=prefix)
|
|
|
|
end subroutine mld_z_base_smoother_dmp
|