I am using CAMB Sources for number counts and I wanted to insert two different z-windows, i.e. a Gaussian and a uniform distribution: do I need to double the function counts_obs_window_z in modules.f90 or there is another way to do so?
Thanks a lot.
CAMB Sources: different z-windows
-
- Posts: 1
- Joined: December 15 2010
- Affiliation: LMU
-
- Posts: 1941
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: CAMB Sources: different z-windows
The window functions take in a TRedWin type, which specifies which window to calculate. So I don't think you need to duplicate the function, you can just return a different form depending on which TRedWin is requested (e.g. you can check Redshift%redshift or Redshift%kind in an "if" statement).