mirror of
https://github.com/cosmo-sims/MUSIC.git
synced 2024-09-19 17:03:46 +02:00
fixed a bug in output of 'input_powerspec.txt' to not include header in every line
This commit is contained in:
parent
07a8367439
commit
f85224f55d
1 changed files with 8 additions and 8 deletions
|
@ -184,16 +184,16 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
ofs << "#"
|
||||
<< std::setw(16) << "k [h/Mpc]"
|
||||
<< std::setw(16) << "P_cdm"
|
||||
<< std::setw(16) << "P_vcdm"
|
||||
<< std::setw(16) << "P_total"
|
||||
<< std::endl;
|
||||
|
||||
for( int i=0; i<300; ++i )
|
||||
{
|
||||
ofs << "#"
|
||||
<< std::setw(16) << "k [h/Mpc]"
|
||||
<< std::setw(16) << "P_cdm"
|
||||
<< std::setw(16) << "P_vcdm"
|
||||
<< std::setw(16) << "P_total"
|
||||
<< std::endl;
|
||||
|
||||
double k = pow(10.0,kmin+i*dk);
|
||||
double k = pow(10.0,kmin+i*dk);
|
||||
ofs << std::setw(16) << k
|
||||
<< std::setw(16) << pow(sqrtpnorm_*pow(k,0.5*nspec_)*ptf_->compute(k,cdm),2)
|
||||
<< std::setw(16) << pow(sqrtpnorm_*pow(k,0.5*nspec_)*ptf_->compute(k,vcdm),2)
|
||||
|
|
Loading…
Reference in a new issue