EFTCAMB  Reference documentation for version 3.0
Data Types | Functions/Subroutines
eftcamb_mixed_algorithms Module Reference

This module contains various generic algorithms that are useful to EFTCAMB. More...

Functions/Subroutines

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 bisection algorithm. More...
 
character(10) function, public integer_to_string (number)
 This function converts an integer to a string. Usefull for numbered files output. More...
 

Detailed Description

This module contains various generic algorithms that are useful to EFTCAMB.

Author
Bin Hu, Marco Raveri

Function/Subroutine Documentation

subroutine, public eftcamb_mixed_algorithms::hunt ( real(dl), dimension(n)  xx,
integer  n,
real(dl)  x,
integer  jlo 
)

Hunting algorithm: This is used to efficiently search an ordered table by means of a hunting and a bisection algorithm.

Parameters
nthe length of the table
xxthe table to be searched
xthe requested value
jlothe index of the closest (from below) entry of the table

Definition at line 48 of file 02_utilities.f90.

character(10) function, public eftcamb_mixed_algorithms::integer_to_string ( integer, intent(in)  number)

This function converts an integer to a string. Usefull for numbered files output.

Parameters
[in]numberInput integer number
Returns
Output string with the number

Definition at line 103 of file 02_utilities.f90.