1
0
Fork 0
mirror of https://github.com/cosmo-sims/MUSIC.git synced 2024-09-19 17:03:46 +02:00

fixed a floating point conversion when using constrained ICs

This commit is contained in:
Oliver Hahn 2016-03-01 16:30:08 +01:00
parent f85224f55d
commit e1c5b49072

View file

@ -170,7 +170,7 @@ constraint_set::constraint_set( config_file& cf, transfer_function *ptf )
unsigned i=0;
double astart = 1.0/(1.0+pcf_->getValue<unsigned>("setup","zstart"));
double astart = 1.0/(1.0+pcf_->getValue<double>("setup","zstart"));
unsigned levelmin = pcf_->getValue<unsigned>("setup","levelmin");
unsigned levelmin_TF = pcf_->getValueSafe<unsigned>("setup","levelmin_TF",levelmin);
constr_level_ = pcf_->getValueSafe<unsigned>("constraints","level",levelmin_TF);