1010!
1111!
1212! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
13- ! COPYRIGHT (C) 2015 by Filippo Lipparini, Benjamin Stamm, Eric Cancès, !
14- ! Yvon Maday, Jean-Philip Piquemal, Louis Lagardère and Benedetta Mennucci. !
13+ ! COPYRIGHT (C) 2015 by Filippo Lipparini, Benjamin Stamm, Paolo Gatto !
14+ ! Eric Cancès, Yvon Maday, Jean-Philip Piquemal, Louis Lagardère and !
15+ ! Benedetta Mennucci. !
1516! ALL RIGHT RESERVED. !
1617! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1718!
9293!
9394subroutine lx ( n , x , y )
9495!
95- use ddcosmo , only : nylm, nsph, ngrid, lmax, zero, calcv, intrhs, &
96- facl
96+ use ddcosmo , only : iprint, nylm, nsph, ngrid, lmax, zero, calcv, intrhs, &
97+ facl, prtsph
9798!
9899 implicit none
99100 integer , intent (in ) :: n
@@ -112,6 +113,8 @@ subroutine lx( n, x, y )
112113 write (* ,* ) ' lx: allocation failed !'
113114 stop
114115 endif
116+ !
117+ if (iprint.ge. 5 ) call prtsph(' X' ,nsph,0 ,x)
115118!
116119! initialize
117120 y = zero
@@ -130,8 +133,9 @@ subroutine lx( n, x, y )
130133! action of off-diagonal blocks
131134 y(:,isph) = - y(:,isph)
132135!
133- ! add action of diagonal block
134136 enddo
137+ !
138+ if (iprint.ge. 5 ) call prtsph(' LX (off diagonal)' ,nsph,0 ,y)
135139!
136140! deallocate workspaces
137141 deallocate ( pot, basloc, vplm, vcos, vsin , stat= istatus )
@@ -156,11 +160,11 @@ end subroutine lx
156160!
157161subroutine lstarx ( n , x , y )
158162!
159- use ddcosmo , only : nylm, nsph, ngrid, lmax, zero, basis, &
160- adjrhs, facl
163+ use ddcosmo , only : iprint, nylm, nsph, ngrid, lmax, zero, basis, &
164+ adjrhs, facl, prtsph
161165!
162166 implicit none
163- integer , intent (in ) :: n
167+ integer , intent (in ) :: n
164168 real * 8 , dimension (nylm,nsph), intent (in ) :: x
165169 real * 8 , dimension (nylm,nsph), intent (inout ) :: y
166170!
@@ -176,6 +180,8 @@ subroutine lstarx( n, x, y )
176180 write (* ,* ) ' lstarx: allocation failed!'
177181 stop
178182 endif
183+ !
184+ if (iprint.ge. 5 ) call prtsph(' X' ,nsph,0 ,x)
179185!
180186! initilize
181187 y = zero
@@ -215,6 +221,8 @@ subroutine lstarx( n, x, y )
215221! add action of diagonal block
216222!
217223 enddo
224+ !
225+ if (iprint.ge. 5 ) call prtsph(' L*X (off-diagonal)' ,nsph,0 ,y)
218226!
219227! deallocate workspaces
220228 deallocate ( xi, basloc, vplm, vcos, vsin , stat= istatus )
0 commit comments