39 character(len=:),
allocatable :: string
47 subroutine hunt(xx,n,x,jlo)
59 if(jlo.le.0.or.jlo.gt.n)
then 65 if(x.ge.xx(jlo).eqv.ascnd)
then 69 else if(x.ge.xx(jhi).eqv.ascnd)
then 79 else if(x.lt.xx(jlo).eqv.ascnd)
then 85 3
if(jhi-jlo.eq.1)
then 91 if(x.ge.xx(jm).eqv.ascnd)
then 106 integer,
intent(in) :: number
107 character(10) :: integer_to_string
109 write( integer_to_string,
'(i10)' ) number
111 integer_to_string = trim(adjustl( integer_to_string ))
This module contains various generic algorithms that are useful to EFTCAMB.
character(10) function, public integer_to_string(number)
This function converts an integer to a string. Usefull for numbered files output. ...
subroutine, public hunt(xx, n, x, jlo)
Hunting algorithm: This is used to efficiently search an ordered table by means of a hunting and a bi...