Skip to content

Shooting

kabeleh edited this page Dec 25, 2025 · 8 revisions

To fill the energy budget constraints, a shooting method is applied that fills the energy budget with dark energy. All implemented dark energy potentials have an overall scaling factor $c_1$. To tell CLASS to use this factor for shooting, the input parameter scf_tuning_index = 0 is to be passed (which is also the default value, in case nothing is passed). $c_1$ is the varied by the shooting algorithm within CLASS. Therefore, it is not a free parameter that needs to be estimated through the MCMC. What is passed by the user as the value of $c_1$ is only used as the initial guess for this variable. In input.c, the shooting is implemented:

    case Omega_scf:
      xguess[index_guess] = ba.scf_parameters[ba.scf_tuning_index];
      dxdy[index_guess] = ba.scf_parameters[ba.scf_tuning_index] / ba.Omega0_scf;
      break;

Clone this wiki locally