mirror of
https://github.com/cosmo-sims/MUSIC.git
synced 2024-09-16 13:33:46 +02:00
fixed bug that parameter was overwritten but not reread
This commit is contained in:
parent
74a1727d3d
commit
26961c0a0e
1 changed files with 3 additions and 3 deletions
|
@ -452,9 +452,6 @@ int main(int argc, const char *argv[])
|
|||
cf.insert_value("setup", "levelmin_TF", cf.get_value<std::string>("setup", "levelmin"));
|
||||
}
|
||||
|
||||
// .. determine if spectral sampling should be used
|
||||
const bool use_fourier_coarsening = cf.get_value_safe<bool>("setup", "fourier_splicing", true);
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//... initialize cosmology
|
||||
|
@ -591,6 +588,9 @@ int main(int argc, const char *argv[])
|
|||
poisson_plugin_creator *the_poisson_plugin_creator = get_poisson_plugin_map()[poisson_solver_name];
|
||||
poisson_plugin *the_poisson_solver = the_poisson_plugin_creator->create(cf);
|
||||
|
||||
// .. this parameter needs to be read after the random module is initialised as it will be overwritten by it
|
||||
const bool use_fourier_coarsening = cf.get_value_safe<bool>("setup", "fourier_splicing", true);
|
||||
|
||||
//---------------------------------------------------------------------------------
|
||||
//... THIS IS THE MAIN DRIVER BRANCHING TREE RUNNING THE VARIOUS PARTS OF THE CODE
|
||||
//---------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue