Skip to content

Commit f413cbf

Browse files
committed
change name generic for kernel
1 parent acefaaf commit f413cbf

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

example/linalg/example_solve_custom.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module custom_solver
33
use stdlib_sparse
44
use stdlib_linalg_iterative_solvers, only: linop_dp, &
55
solver_workspace_dp, &
6-
solve_pccg_generic, &
6+
solve_pccg_kernel, &
77
size_wksp_pccg
88
implicit none
99
contains
@@ -56,7 +56,7 @@ subroutine solve_pccg_custom(A,b,x,di,tol,maxiter,restart,workspace)
5656
where(abs(diagonal)>epsilon(0.d0)) diagonal = 1._dp/diagonal
5757
!-------------------------
5858
! main call to the solver
59-
call solve_pccg_generic(op,M,b,x,tol_,maxiter_,workspace_)
59+
call solve_pccg_kernel(op,M,b,x,tol_,maxiter_,workspace_)
6060

6161
!-------------------------
6262
! internal memory cleanup

src/stdlib_linalg_iterative_solvers.fypp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ module stdlib_linalg_iterative_solvers
5757
#:endfor
5858
end interface
5959

60-
interface solve_cg_generic
60+
interface solve_cg_kernel
6161
#:for k, t, s in R_KINDS_TYPES
62-
module subroutine solve_cg_generic_${s}$(A,b,x,tol,maxiter,workspace)
62+
module subroutine solve_cg_kernel_${s}$(A,b,x,tol,maxiter,workspace)
6363
class(linop_${s}$), intent(in) :: A
6464
${t}$, intent(in) :: b(:)
6565
${t}$, intent(inout) :: x(:)
@@ -69,7 +69,7 @@ module stdlib_linalg_iterative_solvers
6969
end subroutine
7070
#:endfor
7171
end interface
72-
public :: solve_cg_generic
72+
public :: solve_cg_kernel
7373

7474
interface solve_cg
7575
#:for matrix in MATRIX_TYPES
@@ -93,9 +93,9 @@ module stdlib_linalg_iterative_solvers
9393
end interface
9494
public :: solve_cg
9595

96-
interface solve_pccg_generic
96+
interface solve_pccg_kernel
9797
#:for k, t, s in R_KINDS_TYPES
98-
module subroutine solve_pccg_generic_${s}$(A,M,b,x,tol,maxiter,workspace)
98+
module subroutine solve_pccg_kernel_${s}$(A,M,b,x,tol,maxiter,workspace)
9999
class(linop_${s}$), intent(in) :: A
100100
class(linop_${s}$), intent(in) :: M !> preconditionner
101101
${t}$, intent(in) :: b(:)
@@ -106,7 +106,7 @@ module stdlib_linalg_iterative_solvers
106106
end subroutine
107107
#:endfor
108108
end interface
109-
public :: solve_pccg_generic
109+
public :: solve_pccg_kernel
110110

111111
interface solve_pccg
112112
#:for matrix in MATRIX_TYPES

src/stdlib_linalg_iterative_solvers_cg.fypp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ submodule(stdlib_linalg_iterative_solvers) stdlib_linalg_iterative_cg
1414
contains
1515

1616
#:for k, t, s in R_KINDS_TYPES
17-
module subroutine solve_cg_generic_${s}$(A,b,x,tol,maxiter,workspace)
17+
module subroutine solve_cg_kernel_${s}$(A,b,x,tol,maxiter,workspace)
1818
class(linop_${s}$), intent(in) :: A
1919
${t}$, intent(in) :: b(:), tol
2020
${t}$, intent(inout) :: x(:)
@@ -112,7 +112,7 @@ contains
112112
! main call to the solver
113113
if(restart_) x = zero_${s}$
114114
x = merge( b, x, di_ ) !> copy dirichlet load conditions encoded in B and indicated by di
115-
call solve_cg_generic(op,b,x,tol_,maxiter_,workspace_)
115+
call solve_cg_kernel(op,b,x,tol_,maxiter_,workspace_)
116116

117117
!-------------------------
118118
! internal memory cleanup

src/stdlib_linalg_iterative_solvers_pccg.fypp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ submodule(stdlib_linalg_iterative_solvers) stdlib_linalg_iterative_pccg
2121
contains
2222

2323
#:for k, t, s in R_KINDS_TYPES
24-
module subroutine solve_pccg_generic_${s}$(A,M,b,x,tol,maxiter,workspace)
24+
module subroutine solve_pccg_kernel_${s}$(A,M,b,x,tol,maxiter,workspace)
2525
class(linop_${s}$), intent(in) :: A
2626
class(linop_${s}$), intent(in) :: M !> preconditionner
2727
${t}$, intent(in) :: b(:), tol
@@ -180,7 +180,7 @@ contains
180180
! main call to the solver
181181
if(restart_) x = zero_${s}$
182182
x = merge( b, x, di_ ) !> copy dirichlet load conditions encoded in B and indicated by di
183-
call solve_pccg_generic(op,M_,b,x,tol_,maxiter_,workspace_)
183+
call solve_pccg_kernel(op,M_,b,x,tol_,maxiter_,workspace_)
184184

185185
!-------------------------
186186
! internal memory cleanup

0 commit comments

Comments
 (0)