Commit a7f46ffb authored by Xavier Garrido's avatar Xavier Garrido
Browse files

use temperature of CMB from Class

parent 9041755c
......@@ -45,7 +45,7 @@ namespace cib {
cib::zeros(_gnu_, _nfreq_);
const double h_p = 6.62607004e-34;
const double k_B = 1.38064852e-23;
const double T_cmb = 2.725;
const double T_cmb = _klass_->Tcmb();
for (size_t i = 0; i < _nu_.size(); i++) {
const double x = h_p*_nu_[i]/k_B/T_cmb;
_gnu_[i] = x*((std::exp(x) + 1)/(std::exp(x) - 1)) - 4;
......@@ -123,7 +123,7 @@ namespace cib {
cib::array3d y_ll;
_compute_y_ell_(y_ll);
const double T_cmb = 2.725;
const double T_cmb = _klass_->Tcmb();
cib::array1d Kcmb_MJy = {244.1, 371.74, 483.69, 287.45, 58.04, 2.27, 1.};
cib::zeros(cl_cib_, _nfreq_, _nfreq_, _nell_);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment