CosmicFish  Reference documentation for version 1.0
Looking into future Cosmology
004_cosmicfish_types.f90
Go to the documentation of this file.
1 !----------------------------------------------------------------------------------------
2 !
3 ! This file is part of CosmicFish.
4 !
5 ! Copyright (C) 2015-2016 by the CosmicFish authors
6 !
7 ! The CosmicFish code is free software;
8 ! You can use it, redistribute it, and/or modify it under the terms
9 ! of the GNU General Public License as published by the Free Software Foundation;
10 ! either version 3 of the License, or (at your option) any later version.
11 ! The full text of the license can be found in the file LICENSE at
12 ! the top level of the CosmicFish distribution.
13 !
14 !----------------------------------------------------------------------------------------
15 
19 
20 !----------------------------------------------------------------------------------------
23 
25 
27 
28  use precision
29 
30  implicit none
31 
32  !----------------------------------------------------------------------------------------
35 
36  ! base parameters selection flags:
37  logical :: want_ombh2
38  logical :: want_omch2
39  logical :: want_omnuh2
40  logical :: want_hubble
41  logical :: want_helium_fraction
42  logical :: want_massless
43  ! primordial spectrum selection flags:
44  logical :: want_scalar_amp
45  logical :: want_scalar_spectral_index
46  logical :: want_scalar_nrun
47  logical :: want_tensor_spectral_index
48  logical :: want_initial_ratio
49  ! reionization:
50  logical :: want_re_optical_depth
51  ! LSS nuissance parameters::
52  logical :: want_bias
53  ! SN nuissance parameters:
54  logical :: want_alpha_sn
55  logical :: want_beta_sn
56  logical :: want_m0_sn
57  ! ppf parameters (only with camb):
58 #ifdef COSMICFISH_CAMB
59  logical :: want_w0_ppf
60  logical :: want_wa_ppf
61  logical :: want_cs_ppf
62 #endif
63 
65 
66  !----------------------------------------------------------------------------------------
70 
71  ! selection flags:
72  logical :: fisher_want_cmb_t
73  logical :: fisher_want_cmb_e
74  logical :: fisher_want_cmb_b
75  logical :: fisher_want_cmb_lensing
76  logical :: fisher_want_lss_lensing
77  logical :: fisher_want_lss_counts
78  logical :: fisher_want_xc
79 
80  ! CMB noise specifications:
81  integer :: cmb_n_channels
82  real(dl) :: cmb_tt_fsky
83  real(dl) :: cmb_ee_fsky
84  real(dl) :: cmb_bb_fsky
85 
86  integer :: l_max_tt
87  integer :: l_max_ee
88  integer :: l_max_bb
89 
90  real(dl), dimension(:), allocatable :: cmb_temp_sens
91  real(dl), dimension(:), allocatable :: cmb_pol_sens
92  real(dl), dimension(:), allocatable :: cmb_fwhm
93 
94  ! LSS windows specifications:
95  integer :: lss_number_windows
96 
97  real(dl), dimension(:), allocatable :: lss_num_galaxies
98  real(dl), dimension(:), allocatable :: lss_intrinsic_ellipticity
99  real(dl), dimension(:), allocatable :: lss_fsky
100  integer , dimension(:), allocatable :: lss_lmax
101 
102  ! other window specifications:
103  integer :: window_type
106  ! window parameters:
107  real(dl) :: window_alpha
110  real(dl) :: window_beta
113  real(dl) :: redshift_zero
116  real(dl) :: photoz_error
119 
120  real(dl), dimension(:), allocatable :: bias
121 
122  end type cosmicfish_fisher_cls
123 
124  !----------------------------------------------------------------------------------------
128 
129  ! SN windows:
130  integer :: number_sn_windows
131  integer , dimension(:), allocatable :: sn_number
132  real(dl), dimension(:), allocatable :: sn_redshift_start
133  real(dl), dimension(:), allocatable :: sn_redshift_end
134  integer :: total_sn_number
135 
136  ! SN Fisher Monte Carlo average:
137  integer :: sn_fisher_mc_samples
138 
139  ! fiducial SN parameters:
140  real(dl) :: alpha_sn
141  real(dl) :: beta_sn
142  real(dl) :: m0_sn
143 
144  ! parameters to generate the SN mock data:
145  real(dl) :: color_dispersion
146  real(dl) :: stretch_dispersion
147 
148  ! parameters to generate the mock SN covariance:
149  real(dl) :: magnitude_sigma
150  real(dl) :: c_sigmaz
151  real(dl) :: sigma_lens_0
152 
153  real(dl) :: dcolor_offset
154  real(dl) :: dcolor_zcorr
155  real(dl) :: dshape_offset
156  real(dl) :: dshape_zcorr
157 
158  real(dl) :: cov_ms_offset
159  real(dl) :: cov_ms_zcorr
160  real(dl) :: cov_mc_offset
161  real(dl) :: cov_mc_zcorr
162  real(dl) :: cov_sc_offset
163  real(dl) :: cov_sc_zcorr
164 
165  end type cosmicfish_fisher_sn
166 
167  !----------------------------------------------------------------------------------------
171 
172  !RD specifications
173  integer :: number_rd_redshifts
174  integer, dimension(:), allocatable :: rd_number
175  real(dl), dimension(:), allocatable :: rd_redshift
176  integer :: exptype
177  real(dl) :: obs_time
178  real(dl) :: signoise
179 
180 
181  end type cosmicfish_fisher_rd
182 
183  !----------------------------------------------------------------------------------------
187 
188  ! base derived parameters selection flags:
189  logical :: want_omegab
190  logical :: want_omegac
191  logical :: want_omegan
192  logical :: want_omegav
193  logical :: want_omegak
194  logical :: want_omegam
195  logical :: want_theta
196  logical :: want_mnu
197  logical :: want_zre
198  logical :: want_neff
199 
200  ! derived parameters in addition to the standard derived:
201  logical :: want_sigma8
202  logical :: want_loghubble
203  logical :: want_logda
204 
205  ! derived parameters tomography:
206  integer :: fd_num_redshift
207  real(dl), dimension(:), allocatable :: fd_redshift
208 
210 
211  !----------------------------------------------------------------------------------------
216 
217  ! General cosmicfish flags:
218  logical :: adaptivity
220 
221  integer :: cosmicfish_feedback
226 
227  logical :: cosmicfish_want_cls
228  logical :: cosmicfish_want_sn
229  logical :: cosmicfish_want_mpk
230  logical :: cosmicfish_want_rd
231  logical :: cosmicfish_want_derived
232 
233  ! other parameters:
234  real(dl) :: output_factor
235 
236  ! Specifications for the Cls Fisher matrix:
237  type(cosmicfish_param_fisher) :: fisher_par
238  type(cosmicfish_fisher_cls) :: fisher_cls
239  type(cosmicfish_fisher_sn) :: fisher_sn
240  type(cosmicfish_fisher_rd) :: fisher_rd
241  type(cosmicfish_fisher_derived) :: fisher_der
242 
243  ! Output root:
244  character(len=:), allocatable :: outroot
245 
246  end type cosmicfish_params
247 
248 end module cosmicfish_types
This derived data type contains all the informations that the cosmicfish code needs to compute the Fi...
This module contains the definitions of derived data types used to store the informations about the f...
This derived data type contains all the informations about the base parameters to run...
This derived data type contains all the informations that the cosmicfish code needs to compute the Fi...
This derived data type contains all the informations that the cosmicfish code needs to compute the Fi...
This derived data type contains all the informations that the cosmicfish code needs to compute the Fi...
This derived data type contains all the informations that the cosmicfish code needs to run...