Skip to content

Commit

Permalink
Revert change to HybridNew.cc
Browse files Browse the repository at this point in the history
Turns out checking for vm.count on toysFile always returns true so flags "readHybridResults", even if not intended.
  • Loading branch information
nucleosynthesis authored Mar 19, 2024
1 parent e9ddd5d commit ac4377a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HybridNew.cc
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ void HybridNew::applyOptions(const boost::program_options::variables_map &vm) {
workingMode_ = MakeLimit;
}
saveHybridResult_ = vm.count("saveHybridResult");
readHybridResults_ = ( vm.count("readHybridResults") || vm.count("grid") || vm.count("toysFile") );
readHybridResults_ = ( vm.count("readHybridResults") || vm.count("grid") );
if (readHybridResults_ && !(vm.count("toysFile") || vm.count("grid"))) throw std::invalid_argument("HybridNew: must have 'toysFile' or 'grid' option to have 'readHybridResults'\n");
mass_ = vm["mass"].as<float>();
fullGrid_ = vm.count("fullGrid");
Expand Down

0 comments on commit ac4377a

Please sign in to comment.