Skip to content

Commit 3961903

Browse files
author
lburth
committed
adapt warnings in LR
1 parent 3320dd8 commit 3961903

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/LR/CVS_phRLR.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ subroutine CVS_phRLR(TDA,nS,Aph,Bph,EcRPA,Om,XpY,XmY)
5353
call print_warning('We dont find a Om and -Om structure as solution of the RPA. There might be a problem somewhere.')
5454
write(*,*) "Maximal difference :", maxval(abs(OmOmminus(1:nS)+OmOmminus(nS+1:2*nS)))
5555
end if
56-
if(minval(real(OmOmminus(:))) < 0d0) &
56+
if(minval(real(OmOmminus(1:nS))) < 0d0) &
5757
call print_warning('You may have instabilities in linear response: A-B is not positive definite!!')
5858
if(maxval(abs(aimag(OmOmminus(:))))>1d-8)&
5959
call print_warning('You may have instabilities in linear response: complex excitation eigenvalue !')

src/LR/CVS_phULR.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ subroutine CVS_phULR(TDA,nSa,nSb,nSt,Aph,Bph,EcRPA,Om,XpY,XmY)
5555
call print_warning('We dont find a Om and -Om structure as solution of the RPA. There might be a problem somewhere.')
5656
write(*,*) "Maximal difference :", maxval(abs(OmOmminus(1:nSt)+OmOmminus(nSt+1:2*nSt)))
5757
end if
58-
if(minval(real(OmOmminus(:))) < 0d0) &
58+
if(minval(real(OmOmminus(1:nSt))) < 0d0) &
5959
call print_warning('You may have instabilities in linear response: A-B is not positive definite!!')
6060
if(maxval(abs(aimag(OmOmminus(:))))>1d-8)&
6161
call print_warning('You may have instabilities in linear response: complex excitation eigenvalue !')

0 commit comments

Comments
 (0)