1
0
Fork 0
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:
Oliver Hahn 2021-06-02 15:30:19 +02:00
parent 1edf50ac53
commit ef8cc6d863

View file

@ -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_);