Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4758 from nilsvu/exit_codes
Support exit codes
- Loading branch information
Showing
10 changed files
with
139 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Distributed under the MIT License. | ||
// See LICENSE.txt for details. | ||
|
||
#pragma once | ||
|
||
#include "DataStructures/DataBox/Tag.hpp" | ||
|
||
namespace Parallel { | ||
|
||
/*! | ||
* \brief Exit code of an executable | ||
* | ||
* \warning Don't change the integer values of the enum cases unless you have a | ||
* very good reason to do so. The integer values are used by external code, so | ||
* this is a public interface that should remain stable. | ||
*/ | ||
enum class ExitCode : int { | ||
/// Program is complete | ||
Complete = 0, | ||
/// Program aborted because of an error | ||
Abort = 1, | ||
/// Program is incomplete and should be continued from the last checkpoint | ||
ContinueFromCheckpoint = 2 | ||
}; | ||
|
||
namespace Tags { | ||
|
||
/*! | ||
* \brief Exit code of an executable | ||
* | ||
* \see Parallel::ExitCode | ||
*/ | ||
struct ExitCode : db::SimpleTag { | ||
using type = Parallel::ExitCode; | ||
}; | ||
|
||
} // namespace Tags | ||
} // namespace Parallel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.