1
0
Fork 0
mirror of https://github.com/cosmo-sims/MUSIC.git synced 2024-09-19 17:03:46 +02:00

made spectral sampling the new default even if kspace_TF is not specified in parameter file

This commit is contained in:
Oliver Hahn 2013-12-08 22:21:13 +01:00
parent e9ffb9b953
commit de436d5672

View file

@ -359,9 +359,13 @@ int main (int argc, const char * argv[])
cf.insertValue("setup","levelmin_TF",cf.getValue<std::string>("setup","levelmin")); cf.insertValue("setup","levelmin_TF",cf.getValue<std::string>("setup","levelmin"));
} }
bool bspectral_sampling; // .. determine if spectral sampling should be used
if( !cf.containsKey( "setup", "kspace_TF" ))
cf.insertValue( "setup", "kspace_TF", "yes");
if( bspectral_sampling = cf.getValueSafe<bool>( "setup", "kspace_TF", true ) ) bool bspectral_sampling = cf.getValue<bool>( "setup", "kspace_TF" );
if( bspectral_sampling )
LOGINFO("Using k-space sampled transfer functions..."); LOGINFO("Using k-space sampled transfer functions...");
else else
LOGINFO("Using real space sampled transfer functions..."); LOGINFO("Using real space sampled transfer functions...");