Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into chun_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
chunshen1987 committed May 18, 2022
2 parents a4ea5e4 + 22b60ab commit 766478e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/read_in_parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,15 @@ void check_parameters(InitData &parameter_list, std::string input_file) {
exit(1);
}

if (parameter_list.initial_eta_profile > 2
|| parameter_list.initial_eta_profile < 0) {
music_message << "Initial eta profile"
<< parameter_list.initial_eta_profile
<< "not defined";
music_message.flush("error");
exit(1);
}

if (parameter_list.initializeEntropy > 1
|| parameter_list.initializeEntropy < 0) {
music_message.error("Must initialize with entropy or energy");
Expand Down

0 comments on commit 766478e

Please sign in to comment.