CosmicFish  Reference documentation for version 1.0
Looking into future Cosmology
Functions/Subroutines
cosmicfish_camb_interface Module Reference

This module contains the interface layer between CosmicFish and CAMB. More...

Functions/Subroutines

subroutine, public num_param_fisher (P, FP, num_param)
 This subroutine returns the number of parameters in the Fisher matrix based on the input parameters. More...
 
subroutine, public fisher_param_names (P, FP, param_number, param_name, param_name_latex)
 This subroutine returns the name corresponding to a parameter number. More...
 
subroutine, public camb_params_to_params_array (P, FP, num_param, params_array)
 This subroutine updates the values of the parameters array based on the values of P and FP. More...
 
subroutine, public params_array_to_camb_param (P, FP, num_param, params_array)
 This subroutine updates the values of the parameters P and FP based on the values contained in the parameter array. More...
 
subroutine, public save_fisher_to_file (P, FP, fish_dim, fisher_matrix, filename)
 This subroutine saves the Fisher matrix to file taking care of putting into the file all the relevant informations. More...
 
subroutine, public save_paramnames_to_file (P, FP, fish_dim, filename)
 This subroutine saves a file containing the parameter names for the Fisher matrix run. More...
 

Detailed Description

This module contains the interface layer between CosmicFish and CAMB.

Author
Marco Raveri

Function/Subroutine Documentation

subroutine, public cosmicfish_camb_interface::camb_params_to_params_array ( type(cambparams), intent(in)  P,
type(cosmicfish_params), intent(in)  FP,
integer, intent(in)  num_param,
real(dl), dimension(num_param), intent(out)  params_array 
)

This subroutine updates the values of the parameters array based on the values of P and FP.

Parameters
[in]pInput CAMBparams
[in]fpInput Cosmicfish params
[in]num_paramInput length of the parameter array
[out]params_arrayOutput updated parameter array

Definition at line 787 of file 006_cosmicfish_camb_interface.f90.

subroutine, public cosmicfish_camb_interface::fisher_param_names ( type(cambparams), intent(in)  P,
type(cosmicfish_params), intent(in)  FP,
integer, intent(in)  param_number,
character(*), intent(out)  param_name,
character(*), intent(out), optional  param_name_latex 
)

This subroutine returns the name corresponding to a parameter number.

Parameters
[in]pInput CAMBparams
[in]fpInput Cosmicfish params
[in]param_numberInput number of parameter for which the name is wanted
[out]param_nameOutput name of the parameter
[out]param_name_latexOutput name of the parameter in LaTeX format

Definition at line 267 of file 006_cosmicfish_camb_interface.f90.

subroutine, public cosmicfish_camb_interface::num_param_fisher ( type(cambparams), intent(in)  P,
type(cosmicfish_params), intent(in)  FP,
integer, intent(out)  num_param 
)

This subroutine returns the number of parameters in the Fisher matrix based on the input parameters.

Parameters
[in]pInput CAMBparams
[in]fpInput Cosmicfish params
[out]num_paramOutput number of parameters

Definition at line 46 of file 006_cosmicfish_camb_interface.f90.

subroutine, public cosmicfish_camb_interface::params_array_to_camb_param ( type(cambparams)  P,
type(cosmicfish_params FP,
integer, intent(in)  num_param,
real(dl), dimension(num_param), intent(in)  params_array 
)

This subroutine updates the values of the parameters P and FP based on the values contained in the parameter array.

Parameters
pOutput CAMBparams
fpOutput Cosmicfish params
[in]num_paramInput length of the parameter array
[in]params_arrayInput parameter array

Definition at line 1187 of file 006_cosmicfish_camb_interface.f90.

subroutine, public cosmicfish_camb_interface::save_fisher_to_file ( type(cambparams)  P,
type(cosmicfish_params FP,
integer, intent(in)  fish_dim,
real(dl), dimension(fish_dim, fish_dim), intent(in)  fisher_matrix,
character(len=*), intent(in)  filename 
)

This subroutine saves the Fisher matrix to file taking care of putting into the file all the relevant informations.

Parameters
pInput CAMBparams
fpInput Cosmicfish params
[in]fish_dimDimension of the input Fisher matrix
[in]fisher_matrixInput Fisher matrix
[in]filenameName of the file where the Fisher matrix will be saved

Definition at line 1609 of file 006_cosmicfish_camb_interface.f90.

subroutine, public cosmicfish_camb_interface::save_paramnames_to_file ( type(cambparams)  P,
type(cosmicfish_params FP,
integer, intent(in)  fish_dim,
character(len=*), intent(in)  filename 
)

This subroutine saves a file containing the parameter names for the Fisher matrix run.

Parameters
pInput CAMBparams
fpInput Cosmicfish params
[in]fish_dimDimension of the parameter space
[in]filenameName of the file where the Fisher matrix paramnames file will be saved

Definition at line 1656 of file 006_cosmicfish_camb_interface.f90.