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:
parent
f85224f55d
commit
e1c5b49072
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue