mirror of
https://github.com/cosmo-sims/monofonIC.git
synced 2024-09-19 17:03:45 +02:00
added fatal error when panphasia_ho is run and "DoFixing" is enabled
This commit is contained in:
parent
1edf50ac53
commit
ef8cc6d863
1 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,12 @@ public:
|
|||
grid_res_ = pcf_->get_value<size_t>("setup", "GridRes");
|
||||
boxlength_ = pcf_->get_value<size_t>("setup", "BoxLength");
|
||||
|
||||
if( pcf_->get_value<bool>("setup", "DoFixing") ){
|
||||
music::flog << "Fixing all the modes to the mean power negates any advantage of using the Panphasia field.\n";
|
||||
music::flog << "With the panphasia_ho it is possible by choosing the descriptor to fix the largest modes without losing the ability to resimulate to much higher resolution.\n";
|
||||
throw std::runtime_error("PANPHASIA_HO: incompatible parameter.");
|
||||
}
|
||||
|
||||
panphasia_mode_ = 0;
|
||||
PANPHASIA2::parse_and_validate_descriptor_(descriptor_string_.c_str(), &panphasia_mode_);
|
||||
|
||||
|
|
Loading…
Reference in a new issue