42 character(LEN=Ini_max_string_len) paramfile
44 integer :: num_param, num_derived
45 real(dl),
allocatable,
dimension(:,:) :: Fisher_matrix, Derived_Matrix
46 real(dl),
allocatable,
dimension(:) :: fiducial_params
53 if (getparamcount() /= 0) paramfile = getparam(1)
54 if (paramfile ==
'') stop
'No parameter input file'
60 allocate( fisher_matrix(num_param,num_param) )
65 if ( fp%cosmicfish_want_cls )
then
67 call fisher_cls( p, fp, num_param, fisher_matrix, outroot=fp%outroot )
69 call save_fisher_to_file( p, fp, num_param, fisher_matrix, filename=fp%outroot//
'fisher_matrix_cls.dat' )
74 if ( fp%cosmicfish_want_SN )
then
76 call fisher_sn( p, fp, num_param, fisher_matrix, outroot=fp%outroot )
78 call save_fisher_to_file( p, fp, num_param, fisher_matrix, filename=fp%outroot//
'fisher_matrix_SN.dat' )
83 if ( fp%cosmicfish_want_RD )
then
85 call fisher_rd( p, fp, num_param, fisher_matrix, outroot=fp%outroot)
87 call save_fisher_to_file( p, fp, num_param, fisher_matrix, filename=fp%outroot//
'fisher_matrix_RD.dat' )
92 if ( fp%cosmicfish_want_Mpk )
write(*,*)
'Not yet implemented'
94 if (fp%cosmicfish_want_derived )
then
98 allocate( derived_matrix(num_param, num_derived) )
100 call fisher_derived( p, fp, num_param, num_derived, derived_matrix, outroot=fp%outroot )
102 call save_derived_fisher_to_file( p, fp, num_param, num_derived, derived_matrix, filename=fp%outroot//
'fisher_matrix_derived.dat' )
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 ...
subroutine, public cosmicfish_write_header(name)
This subroutine writes to the terminal the CosmicFish header. To be called at the beginning of the ap...
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...
subroutine, public dimension_derived_parameters(P, FP, num)
This subroutine returns the number of derived parameters.
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...
subroutine, public fisher_rd(P, FP, num_param, Fisher_Matrix, outroot)
This subroutine computes the Fisher matrix for redshift drift.
subroutine, public init_cosmicfish_from_file(P, FP, filename, param_out_name)
This subroutine initializes camb parameters from a parameter file.
This module contains the subroutine and functions to initialize camb and cosmicfish from a parameter ...
This module contains the definitions of derived data types used to store the informations about the f...
This module contains the interface layer between CosmicFish and CAMB.
This module contains several general purpose utilities.
This module contains the code that computes the matrix that can be used to compute the the Fisher mat...
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...
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...
subroutine, public fisher_cls(P, FP, num_param, Fisher_Matrix, outroot)
This subroutine computes the Fisher matrix for Cls.
This module contains the subroutine and functions to carry out Fisher matrix manipulations.
program fisher_matrix_calculator
This module contains the code that computes the Fisher matrix for Cls.
subroutine, public fisher_sn(P, FP, num_param, Fisher_Matrix, outroot)
This subroutine computes the SN Fisher matrix.
This module contains the code that computes the Fisher matrix for Redshift Drift. ...
subroutine, public fisher_derived(P_in, FP_in, num_param, num_derived, Derived_Matrix, outroot)
This subroutine computes the Fisher matrix for derived parameters.
This module contains the code that computes the Fisher matrix for Supernovae measurements.
This derived data type contains all the informations that the cosmicfish code needs to run...