mirror of
https://github.com/cosmo-sims/MUSIC.git
synced 2024-09-16 13:33:46 +02:00
fixed some differences in naming convention between music1 and monofonic
This commit is contained in:
parent
526af6affa
commit
b0f9afab25
1 changed files with 4 additions and 3 deletions
|
@ -225,9 +225,10 @@ public:
|
|||
}
|
||||
|
||||
// determine highest k we will need for the resolution selected
|
||||
double lbox = pcf_->get_value<double>("setup", "BoxLength");
|
||||
int nres = pcf_->get_value<double>("setup", "GridRes");
|
||||
kmax_ = std::max(20.0, 2.0 * M_PI / lbox * nres / 2 * sqrt(3) * 2.0); // 120% of spatial diagonal, or k=10h Mpc-1
|
||||
double lbox = pcf_->get_value<double>("setup", "boxlength");
|
||||
int levelmax = pcf_->get_value<int>("setup", "levelmax");
|
||||
double dx = lbox / (1<<levelmax);
|
||||
kmax_ = std::max(20.0, M_PI /dx * sqrt(3) * 2.0); // 200% of spatial diagonal, or k=20h Mpc-1
|
||||
|
||||
// initialise CLASS and get the normalisation
|
||||
this->init_ClassEngine();
|
||||
|
|
Loading…
Reference in a new issue