CosmicFish
Reference documentation for version 1.0
Looking into future Cosmology
|
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... | |
This module contains the code that computes the matrix that can be used to compute the the Fisher matrix for derived parameters.
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.
[in] | p | Input CAMBparams |
[in] | fp | Input Cosmicfish params |
[out] | derived | Output array with the supernovae magnitude |
[in] | num | number of derived parameters. |
[out] | err | Output 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.
[in] | p | Input CAMBparams |
[in] | fp | Input Cosmicfish params |
[in] | param_num | Input number of the parameter wrt the derivative is computed |
[in] | num_param | Input number of parameters involved in the calculation |
[in] | derived_initial | Derived parameters computed for h=0 |
[out] | derived_derivative | Output returns the derivative of the derived parameter vector |
[out] | derived_der_error | Output returns the error on the derived parameter derivative |
[in] | initial_step | Input initial value of h. Does not need to be small for the adaptive algorithm. |
[out] | error_code | Output 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.
[in] | p | Input CAMBparams |
[in] | fp | Input Cosmicfish params |
[out] | num | Output 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.
[in] | p_in | Input CAMBparams |
[in] | fp_in | Input Cosmicfish params |
[in] | num_param | Input number of parameters |
[in] | num_derived | Input number of derived parameters |
[out] | derived_matrix | Output Fisher matrix |
[in] | outroot | Optional 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.
[in] | p | Input CAMBparams |
[in] | fp | Input Cosmicfish params |
[in] | param_number | Input number of parameter for which the name is wanted |
[out] | param_name | Output name of the parameter |
[out] | param_name_latex | Output 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.
p_in | Input CAMBparams | |
fp_in | Input Cosmicfish params | |
[in] | num_params | Number of parameters |
[in] | num_derived | Number of derived parameters |
[in] | matrix | Input matrix |
[in] | filename | Name 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.
p_in | Input CAMBparams | |
fp_in | Input Cosmicfish params | |
[in] | num_params | Number of parameters of the Fisher matrix |
[in] | num_derived | Number of derived parameters |
[in] | filename | Name of the file where the Fisher matrix paramnames file will be saved |
Definition at line 843 of file 012_Fisher_calculator_derived.f90.