@ -93,30 +93,51 @@ subroutine mld_c_base_onelev_build(lv,info,amold,vmold,imold)
& 'Jacobi sweeps' , izero , is_int_non_negative )
& 'Jacobi sweeps' , izero , is_int_non_negative )
call mld_check_def ( lv % parms % sweeps_post , &
call mld_check_def ( lv % parms % sweeps_post , &
& 'Jacobi sweeps' , izero , is_int_non_negative )
& 'Jacobi sweeps' , izero , is_int_non_negative )
call lv % sm % build ( lv % base_a , lv % base_desc , &
if ( . false . ) then
& info , amold = amold , vmold = vmold , imold = imold )
call lv % sm % build ( lv % base_a , lv % base_desc , &
if ( info == 0 ) then
& info , amold = amold , vmold = vmold , imold = imold )
if ( allocated ( lv % sm2a ) ) then
if ( info == 0 ) then
call lv % sm2a % build ( lv % base_a , lv % base_desc , info , &
if ( allocated ( lv % sm2a ) ) then
& amold = amold , vmold = vmold , imold = imold )
call lv % sm2a % build ( lv % base_a , lv % base_desc , info , &
lv % sm2 = > lv % sm2a
& amold = amold , vmold = vmold , imold = imold )
else
lv % sm2 = > lv % sm2a
lv % sm2 = > lv % sm
else
lv % sm2 = > lv % sm
end if
end if
if ( info / = 0 ) then
info = psb_err_internal_error_
call psb_errpush ( info , name , &
& a_err = 'Smoother bld error' )
go to 9999
end if
else
call lv % sm % build ( lv % base_a , lv % base_desc , info )
if ( info == 0 ) then
if ( allocated ( lv % sm2a ) ) then
call lv % sm2a % build ( lv % base_a , lv % base_desc , info )
lv % sm2 = > lv % sm2a
else
lv % sm2 = > lv % sm
end if
end if
if ( info / = 0 ) then
info = psb_err_internal_error_
call psb_errpush ( info , name , &
& a_err = 'Smoother bld error' )
go to 9999
end if
end if
end if
if ( info / = 0 ) then
info = psb_err_internal_error_
call psb_errpush ( info , name , &
& a_err = 'Smoother bld error' )
go to 9999
end if
if ( any ( ( / present ( amold ) , present ( vmold ) , present ( imold ) / ) ) ) &
& call lv % cnv ( info , amold = amold , vmold = vmold , imold = imold )
end if
call psb_erractionrestore ( err_act )
call psb_erractionrestore ( err_act )
return
return
9999 call psb_error_handler ( err_act )
9999 call psb_error_handler ( err_act )
return
return
end subroutine mld_c_base_onelev_build
end subroutine mld_c_base_onelev_build