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:
parent
e9ffb9b953
commit
de436d5672
1 changed files with 6 additions and 2 deletions
8
main.cc
8
main.cc
|
@ -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...");
|
||||||
|
|
Loading…
Reference in a new issue