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.
422 lines
17 KiB
Fortran
422 lines
17 KiB
Fortran
8 years ago
|
!
|
||
|
!
|
||
7 years ago
|
! MLD2P4 version 2.2
|
||
8 years ago
|
! MultiLevel Domain Decomposition Parallel Preconditioners Package
|
||
8 years ago
|
! based on PSBLAS (Parallel Sparse BLAS version 3.5)
|
||
8 years ago
|
!
|
||
7 years ago
|
! (C) Copyright 2008-2018
|
||
8 years ago
|
!
|
||
7 years ago
|
! Salvatore Filippone
|
||
|
! Pasqua D'Ambra
|
||
|
! Daniela di Serafino
|
||
8 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.
|
||
|
! 3. The name of the MLD2P4 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 MLD2P4 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.
|
||
|
!
|
||
|
!
|
||
4 years ago
|
! File: amg_d_base_solver_mod.f90
|
||
13 years ago
|
!
|
||
4 years ago
|
! Module: amg_d_base_solver_mod
|
||
13 years ago
|
!
|
||
|
! This module defines:
|
||
4 years ago
|
! - the amg_d_base_solver_type data structure containing the
|
||
13 years ago
|
! basic solver type acting on a subdomain
|
||
|
!
|
||
|
! It contains routines for
|
||
|
! - Building and applying;
|
||
|
! - checking if the solver is correctly defined;
|
||
|
! - printing a description of the solver;
|
||
|
! - deallocating the data structure.
|
||
|
!
|
||
|
|
||
4 years ago
|
module amg_d_base_solver_mod
|
||
13 years ago
|
|
||
4 years ago
|
use amg_base_prec_type
|
||
13 years ago
|
use psb_base_mod, only : psb_dspmat_type, &
|
||
11 years ago
|
& psb_d_vect_type, psb_d_base_vect_type, psb_d_base_sparse_mat, &
|
||
10 years ago
|
& psb_dpk_, psb_i_base_vect_type, psb_erractionsave, psb_error_handler
|
||
13 years ago
|
!
|
||
|
!
|
||
4 years ago
|
! Type: amg_T_base_solver_type.
|
||
13 years ago
|
!
|
||
|
! It holds the local solver; it has no mandatory components.
|
||
|
!
|
||
4 years ago
|
! type amg_T_base_solver_type
|
||
|
! end type amg_T_base_solver_type
|
||
13 years ago
|
!
|
||
|
! build - Compute the actual contents of the smoother; includes
|
||
|
! invocation of the build method on the solver component.
|
||
|
! free - Release memory
|
||
|
! apply - Apply the smoother to a vector (or to an array); includes
|
||
|
! invocation of the apply method on the solver component.
|
||
|
! descr - Prints a description of the object.
|
||
|
! default - Set default values
|
||
|
! dump - Dump to file object contents
|
||
|
! set - Sets various parameters; when a request is unknown
|
||
|
! it is passed to the smoother object for further processing.
|
||
|
! check - Sanity checks.
|
||
|
! sizeof - Total memory occupation in bytes
|
||
|
! get_nzeros - Number of nonzeros
|
||
7 years ago
|
! stringval - convert string to val for internal parms
|
||
|
! get_fmt - short string descriptor
|
||
|
! get_id - numeric id descriptro
|
||
|
! get_wrksz - How many workspace vector does apply_vect need
|
||
13 years ago
|
!
|
||
|
!
|
||
|
|
||
4 years ago
|
type amg_d_base_solver_type
|
||
13 years ago
|
contains
|
||
4 years ago
|
procedure, pass(sv) :: apply_v => amg_d_base_solver_apply_vect
|
||
|
procedure, pass(sv) :: apply_a => amg_d_base_solver_apply
|
||
5 years ago
|
generic, public :: apply => apply_a, apply_v
|
||
4 years ago
|
procedure, pass(sv) :: check => amg_d_base_solver_check
|
||
|
procedure, pass(sv) :: dump => amg_d_base_solver_dmp
|
||
|
procedure, pass(sv) :: clone => amg_d_base_solver_clone
|
||
|
procedure, pass(sv) :: clone_settings => amg_d_base_solver_clone_settings
|
||
|
procedure, pass(sv) :: clear_data => amg_d_base_solver_clear_data
|
||
|
procedure, pass(sv) :: build => amg_d_base_solver_bld
|
||
|
procedure, pass(sv) :: cnv => amg_d_base_solver_cnv
|
||
|
procedure, pass(sv) :: free => amg_d_base_solver_free
|
||
|
procedure, pass(sv) :: cseti => amg_d_base_solver_cseti
|
||
|
procedure, pass(sv) :: csetc => amg_d_base_solver_csetc
|
||
|
procedure, pass(sv) :: csetr => amg_d_base_solver_csetr
|
||
6 years ago
|
generic, public :: set => cseti, csetc, csetr
|
||
13 years ago
|
procedure, pass(sv) :: default => d_base_solver_default
|
||
4 years ago
|
procedure, pass(sv) :: descr => amg_d_base_solver_descr
|
||
13 years ago
|
procedure, pass(sv) :: sizeof => d_base_solver_sizeof
|
||
|
procedure, pass(sv) :: get_nzeros => d_base_solver_get_nzeros
|
||
7 years ago
|
procedure, nopass :: get_wrksz => d_base_solver_get_wrksize
|
||
4 years ago
|
procedure, nopass :: stringval => amg_stringval
|
||
12 years ago
|
procedure, nopass :: get_fmt => d_base_solver_get_fmt
|
||
8 years ago
|
procedure, nopass :: get_id => d_base_solver_get_id
|
||
9 years ago
|
procedure, nopass :: is_iterative => d_base_solver_is_iterative
|
||
5 years ago
|
procedure, pass(sv) :: is_global => d_base_solver_is_global
|
||
4 years ago
|
end type amg_d_base_solver_type
|
||
13 years ago
|
|
||
13 years ago
|
private :: d_base_solver_sizeof, d_base_solver_default,&
|
||
9 years ago
|
& d_base_solver_get_nzeros, d_base_solver_get_fmt, &
|
||
7 years ago
|
& d_base_solver_is_iterative, d_base_solver_get_id, &
|
||
5 years ago
|
& d_base_solver_get_wrksize, d_base_solver_is_global
|
||
13 years ago
|
|
||
|
|
||
13 years ago
|
interface
|
||
4 years ago
|
subroutine amg_d_base_solver_apply(alpha,sv,x,beta,y,desc_data,&
|
||
9 years ago
|
& trans,work,info,init,initu)
|
||
13 years ago
|
import :: psb_desc_type, psb_dspmat_type, psb_d_base_sparse_mat, &
|
||
12 years ago
|
& psb_d_vect_type, psb_d_base_vect_type, psb_dpk_, &
|
||
4 years ago
|
& amg_d_base_solver_type, psb_ipk_
|
||
12 years ago
|
implicit none
|
||
13 years ago
|
type(psb_desc_type), intent(in) :: desc_data
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(inout) :: sv
|
||
13 years ago
|
real(psb_dpk_),intent(inout) :: x(:)
|
||
|
real(psb_dpk_),intent(inout) :: y(:)
|
||
|
real(psb_dpk_),intent(in) :: alpha,beta
|
||
12 years ago
|
character(len=1),intent(in) :: trans
|
||
13 years ago
|
real(psb_dpk_),target, intent(inout) :: work(:)
|
||
12 years ago
|
integer(psb_ipk_), intent(out) :: info
|
||
9 years ago
|
character, intent(in), optional :: init
|
||
|
real(psb_dpk_),intent(inout), optional :: initu(:)
|
||
4 years ago
|
end subroutine amg_d_base_solver_apply
|
||
13 years ago
|
end interface
|
||
13 years ago
|
|
||
|
|
||
13 years ago
|
interface
|
||
4 years ago
|
subroutine amg_d_base_solver_apply_vect(alpha,sv,x,beta,y,desc_data,&
|
||
7 years ago
|
& trans,work,wv,info,init,initu)
|
||
13 years ago
|
import :: psb_desc_type, psb_dspmat_type, psb_d_base_sparse_mat, &
|
||
12 years ago
|
& psb_d_vect_type, psb_d_base_vect_type, psb_dpk_, &
|
||
4 years ago
|
& amg_d_base_solver_type, psb_ipk_
|
||
12 years ago
|
implicit none
|
||
13 years ago
|
type(psb_desc_type), intent(in) :: desc_data
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(inout) :: sv
|
||
13 years ago
|
type(psb_d_vect_type),intent(inout) :: x
|
||
|
type(psb_d_vect_type),intent(inout) :: y
|
||
12 years ago
|
real(psb_dpk_),intent(in) :: alpha,beta
|
||
|
character(len=1),intent(in) :: trans
|
||
|
real(psb_dpk_),target, intent(inout) :: work(:)
|
||
7 years ago
|
type(psb_d_vect_type),intent(inout) :: wv(:)
|
||
12 years ago
|
integer(psb_ipk_), intent(out) :: info
|
||
9 years ago
|
character, intent(in), optional :: init
|
||
|
type(psb_d_vect_type),intent(inout), optional :: initu
|
||
4 years ago
|
end subroutine amg_d_base_solver_apply_vect
|
||
13 years ago
|
end interface
|
||
13 years ago
|
|
||
13 years ago
|
interface
|
||
4 years ago
|
subroutine amg_d_base_solver_bld(a,desc_a,sv,info,b,amold,vmold,imold)
|
||
13 years ago
|
import :: psb_desc_type, psb_dspmat_type, psb_d_base_sparse_mat, &
|
||
12 years ago
|
& psb_d_vect_type, psb_d_base_vect_type, psb_dpk_, &
|
||
4 years ago
|
& amg_d_base_solver_type, psb_ipk_, psb_i_base_vect_type
|
||
13 years ago
|
Implicit None
|
||
|
|
||
|
! Arguments
|
||
11 years ago
|
type(psb_dspmat_type), intent(in), target :: a
|
||
6 years ago
|
Type(psb_desc_type), Intent(inout) :: desc_a
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(inout) :: sv
|
||
11 years ago
|
integer(psb_ipk_), intent(out) :: info
|
||
|
type(psb_dspmat_type), intent(in), target, optional :: b
|
||
|
class(psb_d_base_sparse_mat), intent(in), optional :: amold
|
||
|
class(psb_d_base_vect_type), intent(in), optional :: vmold
|
||
|
class(psb_i_base_vect_type), intent(in), optional :: imold
|
||
4 years ago
|
end subroutine amg_d_base_solver_bld
|
||
13 years ago
|
end interface
|
||
13 years ago
|
|
||
11 years ago
|
interface
|
||
4 years ago
|
subroutine amg_d_base_solver_cnv(sv,info,amold,vmold,imold)
|
||
11 years ago
|
import :: psb_d_base_sparse_mat, psb_d_base_vect_type, psb_dpk_, &
|
||
4 years ago
|
& amg_d_base_solver_type, psb_ipk_, psb_i_base_vect_type
|
||
11 years ago
|
Implicit None
|
||
|
|
||
11 years ago
|
! Arguments
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(inout) :: sv
|
||
11 years ago
|
integer(psb_ipk_), intent(out) :: info
|
||
|
class(psb_d_base_sparse_mat), intent(in), optional :: amold
|
||
|
class(psb_d_base_vect_type), intent(in), optional :: vmold
|
||
|
class(psb_i_base_vect_type), intent(in), optional :: imold
|
||
4 years ago
|
end subroutine amg_d_base_solver_cnv
|
||
11 years ago
|
end interface
|
||
|
|
||
13 years ago
|
interface
|
||
4 years ago
|
subroutine amg_d_base_solver_check(sv,info)
|
||
13 years ago
|
import :: psb_desc_type, psb_dspmat_type, psb_d_base_sparse_mat, &
|
||
12 years ago
|
& psb_d_vect_type, psb_d_base_vect_type, psb_dpk_, &
|
||
4 years ago
|
& amg_d_base_solver_type, psb_ipk_
|
||
13 years ago
|
Implicit None
|
||
|
|
||
|
! Arguments
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(inout) :: sv
|
||
12 years ago
|
integer(psb_ipk_), intent(out) :: info
|
||
4 years ago
|
end subroutine amg_d_base_solver_check
|
||
13 years ago
|
end interface
|
||
13 years ago
|
|
||
13 years ago
|
interface
|
||
4 years ago
|
subroutine amg_d_base_solver_cseti(sv,what,val,info,idx)
|
||
12 years ago
|
import :: psb_desc_type, psb_dspmat_type, psb_d_base_sparse_mat, &
|
||
|
& psb_d_vect_type, psb_d_base_vect_type, psb_dpk_, &
|
||
4 years ago
|
& amg_d_base_solver_type, psb_ipk_
|
||
12 years ago
|
Implicit None
|
||
|
|
||
|
! Arguments
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(inout) :: sv
|
||
12 years ago
|
character(len=*), intent(in) :: what
|
||
|
integer(psb_ipk_), intent(in) :: val
|
||
|
integer(psb_ipk_), intent(out) :: info
|
||
6 years ago
|
integer(psb_ipk_), intent(in), optional :: idx
|
||
4 years ago
|
end subroutine amg_d_base_solver_cseti
|
||
12 years ago
|
end interface
|
||
|
|
||
|
interface
|
||
4 years ago
|
subroutine amg_d_base_solver_csetc(sv,what,val,info,idx)
|
||
12 years ago
|
import :: psb_desc_type, psb_dspmat_type, psb_d_base_sparse_mat, &
|
||
|
& psb_d_vect_type, psb_d_base_vect_type, psb_dpk_, &
|
||
4 years ago
|
& amg_d_base_solver_type, psb_ipk_
|
||
12 years ago
|
Implicit None
|
||
|
|
||
|
! Arguments
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(inout) :: sv
|
||
12 years ago
|
character(len=*), intent(in) :: what
|
||
|
character(len=*), intent(in) :: val
|
||
|
integer(psb_ipk_), intent(out) :: info
|
||
6 years ago
|
integer(psb_ipk_), intent(in), optional :: idx
|
||
4 years ago
|
end subroutine amg_d_base_solver_csetc
|
||
12 years ago
|
end interface
|
||
|
|
||
|
interface
|
||
4 years ago
|
subroutine amg_d_base_solver_csetr(sv,what,val,info,idx)
|
||
12 years ago
|
import :: psb_desc_type, psb_dspmat_type, psb_d_base_sparse_mat, &
|
||
|
& psb_d_vect_type, psb_d_base_vect_type, psb_dpk_, &
|
||
4 years ago
|
& amg_d_base_solver_type, psb_ipk_
|
||
12 years ago
|
Implicit None
|
||
|
! Arguments
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(inout) :: sv
|
||
12 years ago
|
character(len=*), intent(in) :: what
|
||
|
real(psb_dpk_), intent(in) :: val
|
||
|
integer(psb_ipk_), intent(out) :: info
|
||
6 years ago
|
integer(psb_ipk_), intent(in), optional :: idx
|
||
4 years ago
|
end subroutine amg_d_base_solver_csetr
|
||
12 years ago
|
end interface
|
||
|
|
||
13 years ago
|
interface
|
||
4 years ago
|
subroutine amg_d_base_solver_free(sv,info)
|
||
13 years ago
|
import :: psb_desc_type, psb_dspmat_type, psb_d_base_sparse_mat, &
|
||
12 years ago
|
& psb_d_vect_type, psb_d_base_vect_type, psb_dpk_, &
|
||
4 years ago
|
& amg_d_base_solver_type, psb_ipk_
|
||
13 years ago
|
Implicit None
|
||
|
|
||
|
! Arguments
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(inout) :: sv
|
||
12 years ago
|
integer(psb_ipk_), intent(out) :: info
|
||
4 years ago
|
end subroutine amg_d_base_solver_free
|
||
13 years ago
|
end interface
|
||
13 years ago
|
|
||
13 years ago
|
interface
|
||
4 years ago
|
subroutine amg_d_base_solver_descr(sv,info,iout,coarse)
|
||
13 years ago
|
import :: psb_desc_type, psb_dspmat_type, psb_d_base_sparse_mat, &
|
||
12 years ago
|
& psb_d_vect_type, psb_d_base_vect_type, psb_dpk_, &
|
||
4 years ago
|
& amg_d_base_solver_type, psb_ipk_
|
||
13 years ago
|
Implicit None
|
||
|
|
||
|
! Arguments
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(in) :: sv
|
||
12 years ago
|
integer(psb_ipk_), intent(out) :: info
|
||
|
integer(psb_ipk_), intent(in), optional :: iout
|
||
|
logical, intent(in), optional :: coarse
|
||
13 years ago
|
|
||
4 years ago
|
end subroutine amg_d_base_solver_descr
|
||
13 years ago
|
end interface
|
||
13 years ago
|
|
||
13 years ago
|
interface
|
||
4 years ago
|
subroutine amg_d_base_solver_dmp(sv,desc,level,info,prefix,head,solver,global_num)
|
||
13 years ago
|
import :: psb_desc_type, psb_dspmat_type, psb_d_base_sparse_mat, &
|
||
12 years ago
|
& psb_d_vect_type, psb_d_base_vect_type, psb_dpk_, &
|
||
4 years ago
|
& amg_d_base_solver_type, psb_ipk_
|
||
13 years ago
|
implicit none
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(in) :: sv
|
||
5 years ago
|
type(psb_desc_type), intent(in) :: desc
|
||
12 years ago
|
integer(psb_ipk_), intent(in) :: level
|
||
|
integer(psb_ipk_), intent(out) :: info
|
||
13 years ago
|
character(len=*), intent(in), optional :: prefix, head
|
||
5 years ago
|
logical, optional, intent(in) :: solver, global_num
|
||
4 years ago
|
end subroutine amg_d_base_solver_dmp
|
||
13 years ago
|
end interface
|
||
12 years ago
|
|
||
|
interface
|
||
4 years ago
|
subroutine amg_d_base_solver_clone(sv,svout,info)
|
||
12 years ago
|
import :: psb_desc_type, psb_dspmat_type, psb_d_base_sparse_mat, &
|
||
|
& psb_d_vect_type, psb_d_base_vect_type, psb_dpk_, &
|
||
4 years ago
|
& amg_d_base_solver_type, psb_ipk_
|
||
12 years ago
|
Implicit None
|
||
|
|
||
|
! Arguments
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(inout) :: sv
|
||
|
class(amg_d_base_solver_type), allocatable, intent(inout) :: svout
|
||
12 years ago
|
integer(psb_ipk_), intent(out) :: info
|
||
4 years ago
|
end subroutine amg_d_base_solver_clone
|
||
12 years ago
|
end interface
|
||
13 years ago
|
|
||
5 years ago
|
interface
|
||
4 years ago
|
subroutine amg_d_base_solver_clone_settings(sv,svout,info)
|
||
5 years ago
|
import :: psb_desc_type, psb_dspmat_type, psb_d_base_sparse_mat, &
|
||
|
& psb_d_vect_type, psb_d_base_vect_type, psb_dpk_, &
|
||
4 years ago
|
& amg_d_base_solver_type, psb_ipk_
|
||
5 years ago
|
Implicit None
|
||
|
|
||
|
! Arguments
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(inout) :: sv
|
||
|
class(amg_d_base_solver_type), intent(inout) :: svout
|
||
5 years ago
|
integer(psb_ipk_), intent(out) :: info
|
||
4 years ago
|
end subroutine amg_d_base_solver_clone_settings
|
||
5 years ago
|
end interface
|
||
13 years ago
|
|
||
5 years ago
|
interface
|
||
4 years ago
|
subroutine amg_d_base_solver_clear_data(sv,info)
|
||
5 years ago
|
import :: psb_desc_type, psb_dspmat_type, psb_d_base_sparse_mat, &
|
||
|
& psb_d_vect_type, psb_d_base_vect_type, psb_dpk_, &
|
||
4 years ago
|
& amg_d_base_solver_type, psb_ipk_
|
||
5 years ago
|
Implicit None
|
||
|
|
||
|
! Arguments
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(inout) :: sv
|
||
5 years ago
|
integer(psb_ipk_), intent(out) :: info
|
||
4 years ago
|
end subroutine amg_d_base_solver_clear_data
|
||
5 years ago
|
end interface
|
||
13 years ago
|
|
||
|
contains
|
||
|
!
|
||
|
! Function returning the size of the data structure
|
||
|
! in bytes or in number of nonzeros of the operator(s) involved.
|
||
|
!
|
||
|
|
||
|
function d_base_solver_sizeof(sv) result(val)
|
||
|
implicit none
|
||
|
! Arguments
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(in) :: sv
|
||
7 years ago
|
integer(psb_epk_) :: val
|
||
12 years ago
|
integer(psb_ipk_) :: i
|
||
13 years ago
|
val = 0
|
||
9 years ago
|
|
||
13 years ago
|
return
|
||
|
end function d_base_solver_sizeof
|
||
|
|
||
|
function d_base_solver_get_nzeros(sv) result(val)
|
||
|
implicit none
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(in) :: sv
|
||
7 years ago
|
integer(psb_epk_) :: val
|
||
12 years ago
|
integer(psb_ipk_) :: i
|
||
13 years ago
|
val = 0
|
||
|
end function d_base_solver_get_nzeros
|
||
|
|
||
|
subroutine d_base_solver_default(sv)
|
||
|
implicit none
|
||
|
! Arguments
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(inout) :: sv
|
||
13 years ago
|
! Do nothing for base version
|
||
|
|
||
|
return
|
||
|
end subroutine d_base_solver_default
|
||
|
|
||
12 years ago
|
function d_base_solver_get_fmt() result(val)
|
||
|
implicit none
|
||
|
character(len=32) :: val
|
||
|
|
||
|
val = "Base solver"
|
||
|
end function d_base_solver_get_fmt
|
||
|
|
||
9 years ago
|
!
|
||
|
! If this is true, then the solver needs a starting
|
||
|
! guess. Currently only handled in JAC smoother.
|
||
|
!
|
||
|
function d_base_solver_is_iterative() result(val)
|
||
|
implicit none
|
||
|
logical :: val
|
||
|
|
||
|
val = .false.
|
||
|
end function d_base_solver_is_iterative
|
||
5 years ago
|
!
|
||
|
! Is the solver acting globally? In most cases
|
||
|
! not, SuperLU_Dist does, MUMPS can do either.
|
||
|
!
|
||
|
function d_base_solver_is_global(sv) result(val)
|
||
|
implicit none
|
||
4 years ago
|
class(amg_d_base_solver_type), intent(in) :: sv
|
||
5 years ago
|
logical :: val
|
||
|
|
||
|
val = .false.
|
||
|
end function d_base_solver_is_global
|
||
12 years ago
|
|
||
8 years ago
|
function d_base_solver_get_id() result(val)
|
||
|
implicit none
|
||
|
integer(psb_ipk_) :: val
|
||
|
|
||
4 years ago
|
val = amg_f_none_
|
||
8 years ago
|
end function d_base_solver_get_id
|
||
|
|
||
7 years ago
|
function d_base_solver_get_wrksize() result(val)
|
||
|
implicit none
|
||
|
integer(psb_ipk_) :: val
|
||
|
|
||
|
val = 0
|
||
|
end function d_base_solver_get_wrksize
|
||
8 years ago
|
|
||
4 years ago
|
end module amg_d_base_solver_mod
|