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

This module contains the code that computes the matrix that can be used to compute the the Fisher matrix for derived parameters. More...

Functions/Subroutines

subroutine, public dimension_derived_parameters (P, FP, num)
 This subroutine returns the number of derived parameters. More...
 
subroutine, public compute_derived_parameters (P, FP, derived, num, err)
 This subroutine returns an array of derived parameters given CAMB parameters. More...
 
subroutine, public fisher_derived_param_names (P, FP, param_number, param_name, param_name_latex)
 This subroutine returns the name corresponding to a derived parameter number. More...
 
subroutine, public derived_parameter_derivative (P, FP, param_num, derived_initial, derived_derivative, derived_der_error, initial_step, num_param, error_code)
 This subroutine computes the derivative of derived parameters. The calculation is carried out with a fixed stepsize finite difference formula or by the Richardson’s deferred approach to the limit. More...
 
subroutine, public fisher_derived (P_in, FP_in, num_param, num_derived, Derived_Matrix, outroot)
 This subroutine computes the Fisher matrix for derived parameters. More...
 
subroutine, public save_derived_fisher_to_file (P_in, FP_in, num_params, num_derived, matrix, filename)
 This subroutine saves the Fisher derived matrix to file taking care of putting into the file all the relevant informations. More...
 
subroutine, public save_derived_paramnames_to_file (P_in, FP_in, num_params, num_derived, filename)
 This subroutine saves a file containing the parameter names for the derived Fisher matrix run. More...
 

Detailed Description

This module contains the code that computes the matrix that can be used to compute the the Fisher matrix for derived parameters.

Author
Marco Raveri

Function/Subroutine Documentation

subroutine, public fisher_calculator_derived::compute_derived_parameters ( type(cambparams), intent(in)  P,
type(cosmicfish_params), intent(in)  FP,
real(dl), dimension(:), intent(out)  derived,
integer, intent(in)  num,
integer, intent(out)  err 
)

This subroutine returns an array of derived parameters given CAMB parameters.

Parameters
[in]pInput CAMBparams
[in]fpInput Cosmicfish params
[out]derivedOutput array with the supernovae magnitude
[in]numnumber of derived parameters.
[out]errOutput error code: 0 = all fine 1 = error in input 2 = error in computation 3 = error in quality 4 = routine specific

Definition at line 150 of file 012_Fisher_calculator_derived.f90.

subroutine, public fisher_calculator_derived::derived_parameter_derivative ( type(cambparams), intent(in)  P,
type(cosmicfish_params), intent(in)  FP,
integer, intent(in)  param_num,
real(dl), dimension(:), intent(in)  derived_initial,
real(dl), dimension(:), intent(out)  derived_derivative,
real(dl), dimension(:), intent(out)  derived_der_error,
real(dl), intent(in)  initial_step,
integer, intent(in)  num_param,
integer, intent(out)  error_code 
)

This subroutine computes the derivative of derived parameters. The calculation is carried out with a fixed stepsize finite difference formula or by the Richardson’s deferred approach to the limit.

Parameters
[in]pInput CAMBparams
[in]fpInput Cosmicfish params
[in]param_numInput number of the parameter wrt the derivative is computed
[in]num_paramInput number of parameters involved in the calculation
[in]derived_initialDerived parameters computed for h=0
[out]derived_derivativeOutput returns the derivative of the derived parameter vector
[out]derived_der_errorOutput returns the error on the derived parameter derivative
[in]initial_stepInput initial value of h. Does not need to be small for the adaptive algorithm.
[out]error_codeOutput error code. When run the code will not stop on error but report it 0 = everything was fine computation exited correctly 1 = error on input parameters 2 = error on computation 3 = error on quality of the results

Definition at line 400 of file 012_Fisher_calculator_derived.f90.

subroutine, public fisher_calculator_derived::dimension_derived_parameters ( type(cambparams), intent(in)  P,
type(cosmicfish_params), intent(in)  FP,
integer, intent(out)  num 
)

This subroutine returns the number of derived parameters.

Parameters
[in]pInput CAMBparams
[in]fpInput Cosmicfish params
[out]numOutput size of derived parameters

Definition at line 92 of file 012_Fisher_calculator_derived.f90.

subroutine, public fisher_calculator_derived::fisher_derived ( type(cambparams), intent(in)  P_in,
type(cosmicfish_params), intent(in)  FP_in,
integer, intent(in)  num_param,
integer, intent(in)  num_derived,
real(dl), dimension(num_param,num_derived), intent(out)  Derived_Matrix,
character(len=*), intent(in), optional  outroot 
)

This subroutine computes the Fisher matrix for derived parameters.

Parameters
[in]p_inInput CAMBparams
[in]fp_inInput Cosmicfish params
[in]num_paramInput number of parameters
[in]num_derivedInput number of derived parameters
[out]derived_matrixOutput Fisher matrix
[in]outrootOptional input: filename that will be used to dump to file optional output if feedback is greater than 1.

Definition at line 647 of file 012_Fisher_calculator_derived.f90.

subroutine, public fisher_calculator_derived::fisher_derived_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 derived 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 291 of file 012_Fisher_calculator_derived.f90.

subroutine, public fisher_calculator_derived::save_derived_fisher_to_file ( type(cambparams)  P_in,
type(cosmicfish_params FP_in,
integer, intent(in)  num_params,
integer, intent(in)  num_derived,
real(dl), dimension(num_params, num_derived), intent(in)  matrix,
character(len=*), intent(in)  filename 
)

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

Parameters
p_inInput CAMBparams
fp_inInput Cosmicfish params
[in]num_paramsNumber of parameters
[in]num_derivedNumber of derived parameters
[in]matrixInput matrix
[in]filenameName of the file where the Fisher matrix will be saved

Definition at line 776 of file 012_Fisher_calculator_derived.f90.

subroutine, public fisher_calculator_derived::save_derived_paramnames_to_file ( type(cambparams)  P_in,
type(cosmicfish_params FP_in,
integer, intent(in)  num_params,
integer, intent(in)  num_derived,
character(len=*), intent(in)  filename 
)

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

Parameters
p_inInput CAMBparams
fp_inInput Cosmicfish params
[in]num_paramsNumber of parameters of the Fisher matrix
[in]num_derivedNumber of derived parameters
[in]filenameName of the file where the Fisher matrix paramnames file will be saved

Definition at line 843 of file 012_Fisher_calculator_derived.f90.