|
|
@ -1,4 +1,4 @@
|
|
|
|
! !
|
|
|
|
!
|
|
|
|
!
|
|
|
|
!
|
|
|
|
! AMG4PSBLAS version 1.0
|
|
|
|
! AMG4PSBLAS version 1.0
|
|
|
|
! Algebraic Multigrid Package
|
|
|
|
! Algebraic Multigrid Package
|
|
|
@ -34,75 +34,6 @@
|
|
|
|
! ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
! ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
! POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
! POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
!
|
|
|
|
!
|
|
|
|
! moved here from
|
|
|
|
|
|
|
|
!
|
|
|
|
|
|
|
|
! AMG4PSBLAS Extensions
|
|
|
|
|
|
|
|
!
|
|
|
|
|
|
|
|
! (C) Copyright 2019
|
|
|
|
|
|
|
|
!
|
|
|
|
|
|
|
|
! Salvatore Filippone Cranfield University
|
|
|
|
|
|
|
|
! Pasqua D'Ambra IAC-CNR, Naples, IT
|
|
|
|
|
|
|
|
!
|
|
|
|
|
|
|
|
! 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.
|
|
|
|
|
|
|
|
! 3. The name of the AMG4PSBLAS group or the names of its contributors may
|
|
|
|
|
|
|
|
! 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
|
|
|
|
|
|
|
|
! PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AMG4PSBLAS GROUP OR ITS CONTRIBUTORS
|
|
|
|
|
|
|
|
! 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.
|
|
|
|
|
|
|
|
!
|
|
|
|
|
|
|
|
!
|
|
|
|
|
|
|
|
! MLD2P4 version 2.2
|
|
|
|
|
|
|
|
! MultiLevel Domain Decomposition Parallel Preconditioners Package
|
|
|
|
|
|
|
|
! based on PSBLAS (Parallel Sparse BLAS version 3.5)
|
|
|
|
|
|
|
|
!
|
|
|
|
|
|
|
|
! (C) Copyright 2008-2018
|
|
|
|
|
|
|
|
!
|
|
|
|
|
|
|
|
! Salvatore Filippone
|
|
|
|
|
|
|
|
! Pasqua D'Ambra
|
|
|
|
|
|
|
|
! Daniela di Serafino
|
|
|
|
|
|
|
|
!
|
|
|
|
|
|
|
|
! 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.
|
|
|
|
|
|
|
|
! 3. The name of the AMG4PSBLAS group or the names of its contributors may
|
|
|
|
|
|
|
|
! 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
|
|
|
|
|
|
|
|
! PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AMG4PSBLAS GROUP OR ITS CONTRIBUTORS
|
|
|
|
|
|
|
|
! 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.
|
|
|
|
|
|
|
|
!
|
|
|
|
|
|
|
|
!
|
|
|
|
|
|
|
|
! File: amg_d_parmatch_aggregator_mat_asb.f90
|
|
|
|
! File: amg_d_parmatch_aggregator_mat_asb.f90
|
|
|
|
!
|
|
|
|
!
|
|
|
|
! Subroutine: amg_d_parmatch_aggregator_mat_asb
|
|
|
|
! Subroutine: amg_d_parmatch_aggregator_mat_asb
|
|
|
@ -167,7 +98,11 @@ subroutine amg_d_parmatch_aggregator_inner_mat_asb(ag,parms,a,desc_a,&
|
|
|
|
& ac,desc_ac, op_prol,op_restr,info)
|
|
|
|
& ac,desc_ac, op_prol,op_restr,info)
|
|
|
|
use psb_base_mod
|
|
|
|
use psb_base_mod
|
|
|
|
use amg_base_prec_type
|
|
|
|
use amg_base_prec_type
|
|
|
|
|
|
|
|
#if defined(SERIAL_MPI)
|
|
|
|
|
|
|
|
use amg_d_parmatch_aggregator_mod
|
|
|
|
|
|
|
|
#else
|
|
|
|
use amg_d_parmatch_aggregator_mod, amg_protect_name => amg_d_parmatch_aggregator_inner_mat_asb
|
|
|
|
use amg_d_parmatch_aggregator_mod, amg_protect_name => amg_d_parmatch_aggregator_inner_mat_asb
|
|
|
|
|
|
|
|
#endif
|
|
|
|
implicit none
|
|
|
|
implicit none
|
|
|
|
class(amg_d_parmatch_aggregator_type), target, intent(inout) :: ag
|
|
|
|
class(amg_d_parmatch_aggregator_type), target, intent(inout) :: ag
|
|
|
|
type(amg_dml_parms), intent(inout) :: parms
|
|
|
|
type(amg_dml_parms), intent(inout) :: parms
|
|
|
@ -198,11 +133,11 @@ subroutine amg_d_parmatch_aggregator_inner_mat_asb(ag,parms,a,desc_a,&
|
|
|
|
ictxt = desc_a%get_context()
|
|
|
|
ictxt = desc_a%get_context()
|
|
|
|
call psb_info(ictxt,me,np)
|
|
|
|
call psb_info(ictxt,me,np)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if !defined(SERIAL_MPI)
|
|
|
|
|
|
|
|
|
|
|
|
if (debug) write(0,*) me,' ',trim(name),' Start:',&
|
|
|
|
if (debug) write(0,*) me,' ',trim(name),' Start:',&
|
|
|
|
& allocated(ag%ac),allocated(ag%desc_ac), allocated(ag%prol),allocated(ag%restr)
|
|
|
|
& allocated(ag%ac),allocated(ag%desc_ac), allocated(ag%prol),allocated(ag%restr)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
select case(parms%coarse_mat)
|
|
|
|
select case(parms%coarse_mat)
|
|
|
|
|
|
|
|
|
|
|
|
case(amg_distr_mat_)
|
|
|
|
case(amg_distr_mat_)
|
|
|
@ -220,7 +155,7 @@ subroutine amg_d_parmatch_aggregator_inner_mat_asb(ag,parms,a,desc_a,&
|
|
|
|
call psb_errpush(info,name,a_err='invalid amg_coarse_mat_')
|
|
|
|
call psb_errpush(info,name,a_err='invalid amg_coarse_mat_')
|
|
|
|
goto 9999
|
|
|
|
goto 9999
|
|
|
|
end select
|
|
|
|
end select
|
|
|
|
|
|
|
|
#endif
|
|
|
|
call psb_erractionrestore(err_act)
|
|
|
|
call psb_erractionrestore(err_act)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|