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

This module contains the code that computes the Fisher matrix for Redshift Drift. More...

Functions/Subroutines

subroutine, public rd_theo_calc (P, FP, redrift, err)
 This subroutine returns the theoretical prediction of redshift drift given the input cosmological parameters and the observation interval given in specifications. More...
 
subroutine, public rd_error_calc (P, FP, RDsigma, err)
 
subroutine, public save_rd_mock_to_file (FP, mock_size, RD_theory, RD_error, filename)
 This subroutine outputs to file a SN covariance. More...
 
subroutine, public rd_derivativecalc (P, FP, param_num, deltav_derivative, deltav_der_error, deltav_initial, initial_step, num_param, error_code)
 This subroutine computes the derivative of the observed redshift drift signal. 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_rd (P, FP, num_param, Fisher_Matrix, outroot)
 This subroutine computes the Fisher matrix for redshift drift. More...
 

Detailed Description

This module contains the code that computes the Fisher matrix for Redshift Drift.

Author
Matteo Martinelli, Marco Raveri

Function/Subroutine Documentation

subroutine, public fisher_calculator_rd::fisher_rd ( type(cambparams), intent(in)  P,
type(cosmicfish_params), intent(in)  FP,
integer, intent(in)  num_param,
real(dl), dimension(num_param,num_param), intent(out)  Fisher_Matrix,
character(len=*), intent(in), optional  outroot 
)

This subroutine computes the Fisher matrix for redshift drift.

Parameters
[in]pInput CAMBparams
[in]fpInput Cosmicfish params
[in]num_paramInput dimension of the Fisher matrix
[out]fisher_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 457 of file 011_Fisher_calculator_RD.f90.

subroutine, public fisher_calculator_rd::rd_derivativecalc ( type(cambparams), intent(in)  P,
type(cosmicfish_params), intent(in)  FP,
integer, intent(in)  param_num,
real(dl), dimension(:), intent(out)  deltav_derivative,
real(dl), dimension(:), intent(out)  deltav_der_error,
real(dl), dimension(:), intent(in)  deltav_initial,
real(dl), intent(in)  initial_step,
integer, intent(in)  num_param,
integer, intent(out)  error_code 
)

This subroutine computes the derivative of the observed redshift drift signal. 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]deltav_initialdeltav computed for h=0
[out]deltav_derivativeOutput returns the derivative of the deltav vector
[out]deltav_der_errorOutput returns the error on the deltav 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 192 of file 011_Fisher_calculator_RD.f90.

subroutine, public fisher_calculator_rd::rd_error_calc ( type(cambparams), intent(in)  P,
type(cosmicfish_params), intent(in)  FP,
real(dl), dimension(fp%fisher_rd%number_rd_redshifts), intent(out)  RDsigma,
integer, intent(out)  err 
)
Parameters
[in]pInput CAMBparams
[in]fpInput Cosmicfish params
[out]rdsigmaOutput array with the RD errors
[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 105 of file 011_Fisher_calculator_RD.f90.

subroutine, public fisher_calculator_rd::rd_theo_calc ( type(cambparams), intent(in)  P,
type(cosmicfish_params), intent(in)  FP,
real(dl), dimension(fp%fisher_rd%number_rd_redshifts), intent(out)  redrift,
integer, intent(out)  err 
)

This subroutine returns the theoretical prediction of redshift drift given the input cosmological parameters and the observation interval given in specifications.

Parameters
[in]pInput CAMBparams
[in]fpInput Cosmicfish params
[out]redriftOutput array with the theoretical RD
[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 55 of file 011_Fisher_calculator_RD.f90.

subroutine, public fisher_calculator_rd::save_rd_mock_to_file ( type(cosmicfish_params), intent(in)  FP,
integer, intent(in)  mock_size,
real(dl), dimension(mock_size), intent(in)  RD_theory,
real(dl), dimension(mock_size), intent(in)  RD_error,
character(len=*), intent(in)  filename 
)

This subroutine outputs to file a SN covariance.

Parameters
[in]fpInput Cosmicfish params
[in]mock_sizenumber of mock points
[in]rd_theoryfiducial cosmology redshift drift
[in]rd_errorerror on delta v
[in]filenameName of the file where the RD mock will be saved

Definition at line 164 of file 011_Fisher_calculator_RD.f90.