Eigenvalue SoLvers for Petaflop-Applications (ELPA) 2024.05.001.rc1
Loading...
Searching...
No Matches
check_monotony_template.F90
Go to the documentation of this file.
1subroutine check_monotony_&
2&precision&
3&(obj, n,d,text, wantdebug, success)
4 ! This is a test routine for checking if the eigenvalues are monotonically increasing.
5 ! It is for debug purposes only, an error should never be triggered!
6 use precision
7 use elpa_utilities
9 implicit none
10
11 class(elpa_abstract_impl_t), intent(inout) :: obj
12 integer(kind=ik) :: n
13 real(kind=real_datatype) :: d(n)
14 character*(*) :: text
15
16 integer(kind=ik) :: i
17 logical, intent(in) :: wantDebug
18 logical, intent(out) :: success
19
20 success = .true.
21 do i=1,n-1
22 if (d(i+1)<d(i)) then
23 if (wantdebug) write(error_unit,'(a,a,i8,2g25.17)') 'ELPA1_check_monotony: Monotony error on ',text,i,d(i),d(i+1)
24 success = .false.
25 return
26 endif
27 enddo
28end subroutine check_monotony_&
29 &precision
Fortran module to provide an abstract definition of the implementation. Do not use directly....
Definition elpa_abstract_impl.F90:50
Definition elpa_abstract_impl.F90:73