From 5d6c779574c20d667f068a0f7422db363903a1b5 Mon Sep 17 00:00:00 2001 From: Oliver Hahn Date: Fri, 24 May 2019 17:47:30 +0200 Subject: [PATCH] now really fixed eisenstein initialisation --- src/plugins/transfer_eisenstein.cc | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/plugins/transfer_eisenstein.cc b/src/plugins/transfer_eisenstein.cc index dbeee2b..f396bf9 100644 --- a/src/plugins/transfer_eisenstein.cc +++ b/src/plugins/transfer_eisenstein.cc @@ -209,12 +209,6 @@ public: */ transfer_eisenstein_plugin(ConfigFile &cf) : TransferFunction_plugin(cf) - { - tf_distinct_ = false; - tf_withvel_ = false; - } - - void initialise() { double Tcmb = pcf_->GetValueSafe("cosmology", "Tcmb", 2.726); double H0 = pcf_->GetValue("cosmology", "H0"); @@ -222,6 +216,9 @@ public: double Omega_b = pcf_->GetValue("cosmology", "Omega_b"); etf_.set_parameters(H0, Omega_m, Omega_b, Tcmb); + + tf_distinct_ = false; + tf_withvel_ = false; } //! Computes the transfer function for k in Mpc/h by calling TFfit_onek @@ -262,10 +259,6 @@ protected: public: transfer_eisenstein_wdm_plugin(ConfigFile &cf) : TransferFunction_plugin(cf) - { - } - - void initialise() { double Tcmb = pcf_->GetValueSafe("cosmology", "Tcmb", 2.726); omegam_ = pcf_->GetValue("cosmology", "Omega_m");