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.
482 lines
16 KiB
Fortran
482 lines
16 KiB
Fortran
17 years ago
|
!!$
|
||
18 years ago
|
!!$
|
||
17 years ago
|
!!$ MLD2P4
|
||
|
!!$ MultiLevel Domain Decomposition Parallel Preconditioners Package
|
||
|
!!$ based on PSBLAS (Parallel Sparse BLAS v.2.0)
|
||
|
!!$
|
||
|
!!$ (C) Copyright 2007 Alfredo Buttari University of Rome Tor Vergata
|
||
17 years ago
|
!!$ Pasqua D'Ambra ICAR-CNR, Naples
|
||
17 years ago
|
!!$ Daniela di Serafino Second University of Naples
|
||
17 years ago
|
!!$ Salvatore Filippone University of Rome Tor Vergata
|
||
18 years ago
|
!!$
|
||
|
!!$ Redistribution and use in source and binary forms, with or without
|
||
|
!!$ modification, are permitted provided that the following conditions
|
||
|
!!$ are met:
|
||
|
!!$ 1. Redistributions of source code must retain the above copyright
|
||
|
!!$ notice, this list of conditions and the following disclaimer.
|
||
|
!!$ 2. Redistributions in binary form must reproduce the above copyright
|
||
|
!!$ notice, this list of conditions, and the following disclaimer in the
|
||
|
!!$ documentation and/or other materials provided with the distribution.
|
||
17 years ago
|
!!$ 3. The name of the MLD2P4 group or the names of its contributors may
|
||
18 years ago
|
!!$ not be used to endorse or promote products derived from this
|
||
|
!!$ software without specific written permission.
|
||
|
!!$
|
||
|
!!$ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||
|
!!$ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||
|
!!$ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||
17 years ago
|
!!$ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE MLD2P4 GROUP OR ITS CONTRIBUTORS
|
||
18 years ago
|
!!$ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||
|
!!$ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||
|
!!$ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||
|
!!$ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||
|
!!$ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||
|
!!$ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||
|
!!$ POSSIBILITY OF SUCH DAMAGE.
|
||
|
!!$
|
||
17 years ago
|
!!$
|
||
17 years ago
|
! File: mld_dfact_bld.f90
|
||
17 years ago
|
!
|
||
17 years ago
|
! Subroutine: mld_dfact_bld
|
||
17 years ago
|
! Version: real
|
||
17 years ago
|
!
|
||
17 years ago
|
! This routine computes an LU or incomplete LU factorization of the input
|
||
|
! matrix, according to the value of p%iprcparm(iprcparm(sub_solve_),
|
||
17 years ago
|
! set by the user through mld_dprecinit or mld_dprecset.
|
||
17 years ago
|
! It may also split the local matrix into its block-diagonal and
|
||
17 years ago
|
! off block-diagonal parts, for the future application of multiple
|
||
|
! block-Jacobi sweeps.
|
||
|
!
|
||
|
! This routine is used by mld_dbaseprec_bld, to build a 'base' block-Jacobi or
|
||
|
! Additive Schwarz (AS) preconditioner at any level of a multilevel preconditioner,
|
||
|
! or a block-Jacobi or LU or ILU solver at the coarsest level of a multilevel
|
||
17 years ago
|
! preconditioner. For the Additive Schwarz, it is called from mld_as_bld,
|
||
|
! which prepares the overlap descriptor and retrieves the remote rows into blck.
|
||
17 years ago
|
!
|
||
17 years ago
|
! More precisely, the routine performs one of the following tasks:
|
||
17 years ago
|
!
|
||
17 years ago
|
! 1. construction of a block-Jacobi preconditioner associated
|
||
17 years ago
|
! to a matrix A distributed among the processes (allowed at any level);
|
||
|
!
|
||
|
! 2. setup of block-Jacobi sweeps to compute an approximate solution of a
|
||
|
! linear system
|
||
|
! A*Y = X,
|
||
|
! distributed among the processes (allowed only at the coarsest level);
|
||
|
!
|
||
|
! 3. LU factorization of a linear system
|
||
|
! A*Y = X,
|
||
|
! distributed among the processes (allowed only at the coarsest level);
|
||
|
!
|
||
|
! 4. LU or incomplete LU factorization of a linear system
|
||
|
! A*Y = X,
|
||
17 years ago
|
! replicated on the processes (allowed only at the coarsest level).
|
||
17 years ago
|
!
|
||
|
! The following factorizations are available:
|
||
|
! - ILU(k), i.e. ILU factorization with fill-in level k;
|
||
|
! - MILU(k), i.e. modified ILU factorization with fill-in level k;
|
||
|
! - ILU(k,t), i.e. ILU with threshold (i.e. drop tolerance) t and k additional
|
||
|
! entries in each row of the L and U factors with respect to the initial
|
||
|
! sparsity pattern;
|
||
17 years ago
|
! - serial LU implemented in SuperLU version 3.0;
|
||
|
! - serial LU implemented in UMFPACK version 4.4;
|
||
17 years ago
|
! - distributed LU implemented in SuperLU_DIST version 2.0.
|
||
|
!
|
||
|
!
|
||
|
! Arguments:
|
||
17 years ago
|
! a - type(psb_dspmat_type), input.
|
||
17 years ago
|
! The sparse matrix structure containing the local part of the
|
||
|
! matrix to be preconditioned or factorized.
|
||
17 years ago
|
! p - type(mld_dbaseprec_type), input/output.
|
||
17 years ago
|
! The 'base preconditioner' data structure containing the local
|
||
|
! part of the preconditioner or solver at the current level.
|
||
|
! info - integer, output.
|
||
|
! Error code.
|
||
17 years ago
|
! upd - character, input.
|
||
|
! If upd='F' then the preconditioner is built from scratch;
|
||
|
! if upd=T' then the matrix to be preconditioned has the same
|
||
|
! sparsity pattern of a matrix that has been previously
|
||
|
! preconditioned, hence some information is reused in building
|
||
|
! the new preconditioner.
|
||
17 years ago
|
! blck - type(psb_dspmat_type), input, optional.
|
||
|
! The sparse matrix structure containing the remote rows of the
|
||
|
! matrix to be factorized, that have been retrieved by mld_as_bld
|
||
|
! to build an Additive Schwarz base preconditioner with overlap
|
||
17 years ago
|
! greater than 0. If the overlap is 0 blck is empty.
|
||
17 years ago
|
!
|
||
17 years ago
|
subroutine mld_dfact_bld(a,p,upd,info,blck)
|
||
17 years ago
|
|
||
18 years ago
|
use psb_base_mod
|
||
17 years ago
|
use mld_prec_mod, mld_protect_name => mld_dfact_bld
|
||
17 years ago
|
|
||
18 years ago
|
implicit none
|
||
17 years ago
|
|
||
|
! Arguments
|
||
18 years ago
|
type(psb_dspmat_type), intent(in), target :: a
|
||
17 years ago
|
type(mld_dbaseprc_type), intent(inout) :: p
|
||
|
integer, intent(out) :: info
|
||
18 years ago
|
character, intent(in) :: upd
|
||
17 years ago
|
type(psb_dspmat_type), intent(in), target, optional :: blck
|
||
18 years ago
|
|
||
17 years ago
|
! Local Variables
|
||
17 years ago
|
type(psb_dspmat_type), pointer :: blck_
|
||
17 years ago
|
type(psb_dspmat_type) :: atmp
|
||
|
integer :: ictxt,np,me,err_act
|
||
|
integer :: debug_level, debug_unit
|
||
|
integer :: k, m, int_err(5), n_row, nrow_a, n_col
|
||
|
character :: trans, unitd
|
||
|
character(len=20) :: name, ch_err
|
||
18 years ago
|
|
||
|
if(psb_get_errstatus().ne.0) return
|
||
|
info=0
|
||
17 years ago
|
name='mld_dfact_bld'
|
||
18 years ago
|
call psb_erractionsave(err_act)
|
||
17 years ago
|
debug_unit = psb_get_debug_unit()
|
||
|
debug_level = psb_get_debug_level()
|
||
17 years ago
|
ictxt = psb_cd_get_context(p%desc_data)
|
||
18 years ago
|
call psb_info(ictxt, me, np)
|
||
|
|
||
|
m = a%m
|
||
|
if (m < 0) then
|
||
|
info = 10
|
||
|
int_err(1) = 1
|
||
|
int_err(2) = m
|
||
|
call psb_errpush(info,name,i_err=int_err)
|
||
|
goto 9999
|
||
|
endif
|
||
|
trans = 'N'
|
||
|
unitd = 'U'
|
||
|
|
||
17 years ago
|
if (present(blck)) then
|
||
|
blck_ => blck
|
||
17 years ago
|
else
|
||
17 years ago
|
allocate(blck_,stat=info)
|
||
|
if (info ==0) call psb_sp_all(0,0,blck_,1,info)
|
||
17 years ago
|
if(info /= 0) then
|
||
|
info=4010
|
||
|
ch_err='psb_sp_all'
|
||
|
call psb_errpush(info,name,a_err=ch_err)
|
||
|
goto 9999
|
||
|
end if
|
||
17 years ago
|
blck_%fida = 'COO'
|
||
|
blck_%infoa(psb_nnz_) = 0
|
||
|
end if
|
||
|
call psb_nullify_sp(atmp)
|
||
18 years ago
|
|
||
17 years ago
|
!
|
||
|
! Treat separately the case the local matrix has to be reordered
|
||
|
! and the case this is not required.
|
||
|
!
|
||
17 years ago
|
select case(p%iprcparm(mld_sub_ren_))
|
||
18 years ago
|
|
||
17 years ago
|
!
|
||
|
! A reordering of the local matrix is required.
|
||
|
!
|
||
18 years ago
|
case (1:)
|
||
|
|
||
|
!
|
||
17 years ago
|
! Reorder the rows and the columns of the local extended matrix,
|
||
|
! according to the value of p%iprcparm(sub_ren_). The reordered
|
||
|
! matrix is stored into atmp, using the COO format.
|
||
18 years ago
|
!
|
||
17 years ago
|
call mld_sp_renum(a,blck_,p,atmp,info)
|
||
18 years ago
|
if (info/=0) then
|
||
18 years ago
|
call psb_errpush(4010,name,a_err='mld_sp_renum')
|
||
18 years ago
|
goto 9999
|
||
|
end if
|
||
|
|
||
17 years ago
|
!
|
||
|
! Clip into p%av(ap_nd_) the off block-diagonal part of the local
|
||
|
! matrix. The clipped matrix is then stored in CSR format.
|
||
|
!
|
||
17 years ago
|
if (p%iprcparm(mld_smooth_sweeps_) > 1) then
|
||
|
call psb_sp_clip(atmp,p%av(mld_ap_nd_),info,&
|
||
|
& jmin=atmp%m+1,rscale=.false.,cscale=.false.)
|
||
|
if (info == 0) call psb_spcnv(p%av(mld_ap_nd_),info,&
|
||
|
& afmt='csr',dupl=psb_dupl_add_)
|
||
|
if (info /= 0) then
|
||
|
call psb_errpush(4010,name,a_err='psb_spcnv')
|
||
|
goto 9999
|
||
|
end if
|
||
|
|
||
|
k = psb_sp_get_nnzeros(p%av(mld_ap_nd_))
|
||
|
call psb_sum(ictxt,k)
|
||
|
|
||
|
if (k == 0) then
|
||
|
!
|
||
|
! If the off diagonal part is emtpy, there is no point in doing
|
||
|
! multiple Jacobi sweeps. This is certain to happen when running
|
||
|
! on a single processor.
|
||
|
!
|
||
|
p%iprcparm(mld_smooth_sweeps_) = 1
|
||
|
end if
|
||
18 years ago
|
end if
|
||
17 years ago
|
if (debug_level >= psb_debug_outer_) &
|
||
|
& write(debug_unit,*) me,' ',trim(name),' Factoring rows ',&
|
||
17 years ago
|
& atmp%m,a%m,blck_%m,atmp%ia2(atmp%m+1)-1
|
||
18 years ago
|
|
||
17 years ago
|
!
|
||
|
! Compute a factorization of the diagonal block of the local matrix,
|
||
|
! according to the choice made by the user by setting p%iprcparm(sub_solve_)
|
||
|
!
|
||
17 years ago
|
select case(p%iprcparm(mld_sub_solve_))
|
||
18 years ago
|
|
||
17 years ago
|
case(mld_ilu_n_,mld_milu_n_,mld_ilu_t_)
|
||
17 years ago
|
!
|
||
|
! ILU(k)/MILU(k)/ILU(k,t) factorization.
|
||
|
!
|
||
18 years ago
|
call psb_spcnv(atmp,info,afmt='csr',dupl=psb_dupl_add_)
|
||
17 years ago
|
if (info == 0) call mld_ilu_bld(atmp,p,upd,info)
|
||
18 years ago
|
if (info/=0) then
|
||
18 years ago
|
call psb_errpush(4010,name,a_err='mld_ilu_bld')
|
||
18 years ago
|
goto 9999
|
||
|
end if
|
||
|
|
||
17 years ago
|
case(mld_slu_)
|
||
17 years ago
|
!
|
||
|
! LU factorization through the SuperLU package.
|
||
|
!
|
||
18 years ago
|
call psb_spcnv(atmp,info,afmt='csr',dupl=psb_dupl_add_)
|
||
17 years ago
|
if (info == 0) call mld_slu_bld(atmp,p%desc_data,p,info)
|
||
18 years ago
|
if (info /= 0) then
|
||
17 years ago
|
call psb_errpush(4010,name,a_err='mld_slu_bld')
|
||
18 years ago
|
goto 9999
|
||
|
end if
|
||
|
|
||
17 years ago
|
case(mld_sludist_)
|
||
|
!
|
||
|
! LU factorization through the SuperLU_DIST package. This works only
|
||
|
! when the matrix is distributed among the processes.
|
||
|
! NOTE: Should have NO overlap here!!!!
|
||
|
!
|
||
|
call psb_spcnv(a,atmp,info,afmt='csr')
|
||
|
if (info == 0) call mld_sludist_bld(atmp,p%desc_data,p,info)
|
||
|
if (info /= 0) then
|
||
|
call psb_errpush(4010,name,a_err='mld_sludist_bld')
|
||
|
goto 9999
|
||
|
end if
|
||
|
|
||
17 years ago
|
case(mld_umf_)
|
||
17 years ago
|
!
|
||
|
! LU factorization through the UMFPACK package.
|
||
|
!
|
||
18 years ago
|
call psb_spcnv(atmp,info,afmt='csc',dupl=psb_dupl_add_)
|
||
17 years ago
|
if (info == 0) call mld_umf_bld(atmp,p%desc_data,p,info)
|
||
18 years ago
|
if (info /= 0) then
|
||
17 years ago
|
call psb_errpush(4010,name,a_err='mld_umf_bld')
|
||
18 years ago
|
goto 9999
|
||
|
end if
|
||
|
|
||
17 years ago
|
case(mld_f_none_)
|
||
17 years ago
|
!
|
||
|
! Error: no factorization required.
|
||
|
!
|
||
|
info=4001
|
||
17 years ago
|
call psb_errpush(info,name,a_err='Inconsistent prec mld_f_none_')
|
||
18 years ago
|
goto 9999
|
||
|
|
||
|
case default
|
||
17 years ago
|
info=4001
|
||
17 years ago
|
call psb_errpush(info,name,a_err='Unknown mld_sub_solve_')
|
||
18 years ago
|
goto 9999
|
||
|
end select
|
||
|
|
||
|
call psb_sp_free(atmp,info)
|
||
|
|
||
17 years ago
|
if (info/=0) then
|
||
18 years ago
|
call psb_errpush(4010,name,a_err='psb_sp_free')
|
||
|
goto 9999
|
||
|
end if
|
||
|
|
||
17 years ago
|
!
|
||
|
! No reordering of the local matrix is required
|
||
|
!
|
||
17 years ago
|
case(0)
|
||
18 years ago
|
|
||
17 years ago
|
|
||
|
!
|
||
|
! In case of multiple block-Jacobi sweeps, clip into p%av(ap_nd_)
|
||
|
! the off block-diagonal part of the local extended matrix. The
|
||
|
! clipped matrix is then stored in CSR format.
|
||
|
!
|
||
|
|
||
|
if (p%iprcparm(mld_smooth_sweeps_) > 1) then
|
||
|
n_row = psb_cd_get_local_rows(p%desc_data)
|
||
|
n_col = psb_cd_get_local_cols(p%desc_data)
|
||
|
nrow_a = a%m
|
||
|
! The following is known to work
|
||
|
! given that the output from CLIP is in COO.
|
||
|
call psb_sp_clip(a,p%av(mld_ap_nd_),info,&
|
||
|
& jmin=nrow_a+1,rscale=.false.,cscale=.false.)
|
||
17 years ago
|
if (info == 0) call psb_sp_clip(blck_,atmp,info,&
|
||
17 years ago
|
& jmin=nrow_a+1,rscale=.false.,cscale=.false.)
|
||
|
if (info == 0) call psb_rwextd(n_row,p%av(mld_ap_nd_),info,b=atmp)
|
||
|
if (info == 0) call psb_spcnv(p%av(mld_ap_nd_),info,&
|
||
|
& afmt='csr',dupl=psb_dupl_add_)
|
||
|
if (info /= 0) then
|
||
|
call psb_errpush(4010,name,a_err='clip & psb_spcnv csr 4')
|
||
|
goto 9999
|
||
|
end if
|
||
|
|
||
|
k = psb_sp_get_nnzeros(p%av(mld_ap_nd_))
|
||
|
call psb_sum(ictxt,k)
|
||
|
|
||
|
if (k == 0) then
|
||
|
!
|
||
|
! If the off block-diagonal part is emtpy, there is no point in doing
|
||
|
! multiple Jacobi sweeps. This is certain to happen when running
|
||
|
! on a single processor.
|
||
|
!
|
||
|
p%iprcparm(mld_smooth_sweeps_) = 1
|
||
|
end if
|
||
|
call psb_sp_free(atmp,info)
|
||
|
if (info/=0) then
|
||
|
call psb_errpush(4010,name,a_err='psb_sp_free')
|
||
|
goto 9999
|
||
|
end if
|
||
|
end if
|
||
|
|
||
17 years ago
|
!
|
||
|
! Compute a factorization of the diagonal block of the local matrix,
|
||
|
! according to the choice made by the user by setting p%iprcparm(sub_solve_)
|
||
|
!
|
||
17 years ago
|
select case(p%iprcparm(mld_sub_solve_))
|
||
18 years ago
|
|
||
17 years ago
|
case(mld_ilu_n_,mld_milu_n_,mld_ilu_t_)
|
||
17 years ago
|
!
|
||
|
! ILU(k)/MILU(k)/ILU(k,t) factorization.
|
||
|
!
|
||
17 years ago
|
!
|
||
|
! Compute the incomplete LU factorization.
|
||
|
!
|
||
17 years ago
|
call mld_ilu_bld(a,p,upd,info,blck=blck_)
|
||
17 years ago
|
if (info/=0) then
|
||
18 years ago
|
call psb_errpush(4010,name,a_err='mld_ilu_bld')
|
||
18 years ago
|
goto 9999
|
||
|
end if
|
||
|
|
||
17 years ago
|
case(mld_slu_)
|
||
17 years ago
|
!
|
||
|
! LU factorization through the SuperLU package.
|
||
|
!
|
||
18 years ago
|
n_row = psb_cd_get_local_rows(p%desc_data)
|
||
|
n_col = psb_cd_get_local_cols(p%desc_data)
|
||
17 years ago
|
call psb_spcnv(a,atmp,info,afmt='coo')
|
||
17 years ago
|
if (info == 0) call psb_rwextd(n_row,atmp,info,b=blck_)
|
||
18 years ago
|
|
||
17 years ago
|
!
|
||
|
! Compute the LU factorization.
|
||
|
!
|
||
18 years ago
|
if (info == 0) call psb_spcnv(atmp,info,afmt='csr',dupl=psb_dupl_add_)
|
||
18 years ago
|
if (info == 0) call mld_slu_bld(atmp,p%desc_data,p,info)
|
||
17 years ago
|
if (info /= 0) then
|
||
17 years ago
|
call psb_errpush(4010,name,a_err='mld_slu_bld')
|
||
18 years ago
|
goto 9999
|
||
|
end if
|
||
|
|
||
|
call psb_sp_free(atmp,info)
|
||
17 years ago
|
if (info/=0) then
|
||
18 years ago
|
call psb_errpush(4010,name,a_err='psb_sp_free')
|
||
|
goto 9999
|
||
|
end if
|
||
|
|
||
17 years ago
|
case(mld_sludist_)
|
||
17 years ago
|
!
|
||
|
! LU factorization through the SuperLU_DIST package. This works only
|
||
|
! when the matrix is distributed among the processes.
|
||
|
! NOTE: Should have NO overlap here!!!!
|
||
|
!
|
||
|
call psb_spcnv(a,atmp,info,afmt='csr')
|
||
18 years ago
|
if (info == 0) call mld_sludist_bld(atmp,p%desc_data,p,info)
|
||
17 years ago
|
if (info /= 0) then
|
||
17 years ago
|
call psb_errpush(4010,name,a_err='mld_sludist_bld')
|
||
18 years ago
|
goto 9999
|
||
|
end if
|
||
|
|
||
|
call psb_sp_free(atmp,info)
|
||
17 years ago
|
if (info/=0) then
|
||
18 years ago
|
call psb_errpush(4010,name,a_err='psb_sp_free')
|
||
|
goto 9999
|
||
|
end if
|
||
|
|
||
17 years ago
|
case(mld_umf_)
|
||
17 years ago
|
!
|
||
|
! LU factorization through the UMFPACK package.
|
||
|
!
|
||
18 years ago
|
|
||
18 years ago
|
call psb_spcnv(a,atmp,info,afmt='coo')
|
||
18 years ago
|
if (info /= 0) then
|
||
18 years ago
|
call psb_errpush(4010,name,a_err='psb_spcnv')
|
||
18 years ago
|
goto 9999
|
||
|
end if
|
||
18 years ago
|
|
||
|
n_row = psb_cd_get_local_rows(p%desc_data)
|
||
|
n_col = psb_cd_get_local_cols(p%desc_data)
|
||
17 years ago
|
call psb_rwextd(n_row,atmp,info,b=blck_)
|
||
18 years ago
|
|
||
17 years ago
|
!
|
||
|
! Compute the LU factorization.
|
||
|
!
|
||
17 years ago
|
if (info == 0) call psb_spcnv(atmp,info,afmt='csc',dupl=psb_dupl_add_)
|
||
17 years ago
|
if (info == 0) call mld_umf_bld(atmp,p%desc_data,p,info)
|
||
|
if (debug_level >= psb_debug_outer_) &
|
||
|
& write(debug_unit,*) me,' ',trim(name),&
|
||
|
& ': Done mld_umf_bld ',info
|
||
18 years ago
|
if (info /= 0) then
|
||
17 years ago
|
call psb_errpush(4010,name,a_err='mld_umf_bld')
|
||
18 years ago
|
goto 9999
|
||
|
end if
|
||
|
|
||
|
call psb_sp_free(atmp,info)
|
||
17 years ago
|
if (info/=0) then
|
||
18 years ago
|
call psb_errpush(4010,name,a_err='psb_sp_free')
|
||
|
goto 9999
|
||
|
end if
|
||
|
|
||
17 years ago
|
case(mld_f_none_)
|
||
17 years ago
|
!
|
||
|
! Error: no factorization required.
|
||
|
!
|
||
17 years ago
|
info=4001
|
||
17 years ago
|
call psb_errpush(info,name,a_err='Inconsistent prec mld_f_none_')
|
||
18 years ago
|
goto 9999
|
||
|
|
||
|
case default
|
||
17 years ago
|
info=4001
|
||
17 years ago
|
call psb_errpush(info,name,a_err='Unknown mld_sub_solve_')
|
||
18 years ago
|
goto 9999
|
||
|
end select
|
||
|
|
||
|
case default
|
||
17 years ago
|
info=4001
|
||
18 years ago
|
call psb_errpush(info,name,a_err='Invalid renum_')
|
||
|
goto 9999
|
||
|
end select
|
||
17 years ago
|
|
||
|
if (.not.present(blck)) then
|
||
|
call psb_sp_free(blck_,info)
|
||
|
if (info == 0) deallocate(blck_)
|
||
|
if (info /= 0) then
|
||
|
call psb_errpush(4010,name,a_err='psb_sp_free')
|
||
|
goto 9999
|
||
|
end if
|
||
18 years ago
|
end if
|
||
|
|
||
17 years ago
|
if (debug_level >= psb_debug_outer_) &
|
||
|
& write(debug_unit,*) me,' ',trim(name),'End '
|
||
18 years ago
|
|
||
|
call psb_erractionrestore(err_act)
|
||
|
|
||
|
return
|
||
|
|
||
|
9999 continue
|
||
|
call psb_erractionrestore(err_act)
|
||
|
if (err_act.eq.psb_act_abort_) then
|
||
|
call psb_error()
|
||
|
return
|
||
|
end if
|
||
|
return
|
||
|
|
||
|
|
||
17 years ago
|
end subroutine mld_dfact_bld
|
||
18 years ago
|
|
||
|
|