mirror of
https://github.com/cosmo-sims/monofonIC.git
synced 2024-09-19 17:03:45 +02:00
disable isocurvature when outputting only 1 species (only relevant when using ppt for dm)
This commit is contained in:
parent
9df2d90e47
commit
0bcfe6753e
1 changed files with 7 additions and 1 deletions
|
@ -542,7 +542,13 @@ int run( config_file& the_config )
|
||||||
music::ilog << std::endl
|
music::ilog << std::endl
|
||||||
<< ">>> Computing ICs for species \'" << cosmo_species_name[this_species] << "\' <<<\n" << std::endl;
|
<< ">>> Computing ICs for species \'" << cosmo_species_name[this_species] << "\' <<<\n" << std::endl;
|
||||||
|
|
||||||
const real_t C_species = (this_species == cosmo_species::baryon)? (1.0-the_cosmo_calc->cosmo_param_["f_b"]) : -the_cosmo_calc->cosmo_param_["f_b"];
|
// const real_t C_species = (this_species == cosmo_species::baryon)? (1.0-the_cosmo_calc->cosmo_param_["f_b"]) : -the_cosmo_calc->cosmo_param_["f_b"];
|
||||||
|
|
||||||
|
real_t C_species = (this_species == cosmo_species::baryon)? (1.0-the_cosmo_calc->cosmo_param_["f_b"]) : -the_cosmo_calc->cosmo_param_["f_b"];
|
||||||
|
|
||||||
|
if( species_list.size() == 1 ){
|
||||||
|
C_species = 0.0;
|
||||||
|
}
|
||||||
|
|
||||||
// main loop block
|
// main loop block
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue