Skip to content

Commit

Permalink
Merge pull request #501 from GOMC-WSU/restart
Browse files Browse the repository at this point in the history
Check all restart files to make sure Restart is true
  • Loading branch information
LSchwiebert authored Jun 14, 2023
2 parents 585a54e + a5bf65a commit 012eaa3
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/ConfigSetup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1769,8 +1769,26 @@ void ConfigSetup::verifyInputs(void) {
}

if (in.restart.restartFromCheckpoint && !in.restart.enable) {
std::cout << "Error: Checkpoint cannot be used without Restart true!"
<< std::endl;
std::cout << "Error: Restarting from checkpoint file requires"
<< " Restart true!" << std::endl;
exit(EXIT_FAILURE);
}

if (in.restart.restartFromBinaryCoorFile && !in.restart.enable) {
std::cout << "Error: Restarting from binary coordinate file(s) requires"
<< " Restart true!" << std::endl;
exit(EXIT_FAILURE);
}

if (in.restart.restartFromBinaryVelFile && !in.restart.enable) {
std::cout << "Error: Restarting from binary velocity file(s) requires"
<< " Restart true!" << std::endl;
exit(EXIT_FAILURE);
}

if (in.restart.restartFromXSCFile && !in.restart.enable) {
std::cout << "Error: Restarting from extended system file(s) requires"
<< " Restart true!" << std::endl;
exit(EXIT_FAILURE);
}

Expand Down

0 comments on commit 012eaa3

Please sign in to comment.