@@ -75,18 +75,33 @@ int Fenix_Callback_register(std::function<void(MPI_Comm, int)> callback);
7575
7676namespace Fenix {
7777
78+ using Role = Fenix_Rank_role;
79+ constexpr Role INITIAL_RANK = FENIX_ROLE_INITIAL_RANK;
80+ constexpr Role RECOVERED_RANK = FENIX_ROLE_RECOVERED_RANK;
81+ constexpr Role SURVIVOR_RANK = FENIX_ROLE_SURVIVOR_RANK;
82+
83+ using ResumeMode = Fenix_Resume_mode;
84+ constexpr ResumeMode JUMP = FENIX_RESUME_JUMP;
85+ constexpr ResumeMode RETURN = FENIX_RESUME_RETURN;
86+ constexpr ResumeMode THROW = FENIX_RESUME_THROW;
87+
88+ using UnhandledMode = Fenix_Unhandled_mode;
89+ constexpr UnhandledMode SILENT = FENIX_UNHANDLED_SILENT;
90+ constexpr UnhandledMode PRINT = FENIX_UNHANDLED_PRINT;
91+ constexpr UnhandledMode ABORT = FENIX_UNHANDLED_ABORT;
92+
7893namespace Args {
7994struct FenixInitArgs {
80- int * role = nullptr ;
81- MPI_Comm in_comm = MPI_COMM_WORLD;
82- MPI_Comm* out_comm = nullptr ;
83- int * argc = nullptr ;
84- char *** argv = nullptr ;
85- int spares = 0 ;
86- int spawn = 0 ;
87- Fenix_Resume_mode resume_mode = THROW;
88- Fenix_Unhandled_mode unhandled_mode = ABORT;
89- int * err = nullptr ;
95+ int * role = nullptr ;
96+ MPI_Comm in_comm = MPI_COMM_WORLD;
97+ MPI_Comm* out_comm = nullptr ;
98+ int * argc = nullptr ;
99+ char *** argv = nullptr ;
100+ int spares = 0 ;
101+ int spawn = 0 ;
102+ ResumeMode resume_mode = THROW;
103+ UnhandledMode unhandled_mode = ABORT;
104+ int * err = nullptr ;
90105};
91106}
92107
@@ -99,8 +114,9 @@ void throw_exception();
99114
100115namespace Fenix ::Data {
101116
102- extern const DataSubset FENIX_SUBSET_FULL;
103- extern const DataSubset FENIX_SUBSET_EMPTY;
117+ extern const DataSubset SUBSET_FULL;
118+ extern const DataSubset SUBSET_EMPTY;
119+ extern DataSubset SUBSET_IGNORE;
104120
105121// !@brief Overload of #Fenix_Data_member_store
106122int member_store (int group_id, int member_id, const DataSubset& subset);
@@ -122,13 +138,13 @@ int member_istorev(
122138
123139// !@brief Overload of #Fenix_Data_member_restore
124140int member_restore (
125- int group_id, int member_id, void *target_buffer, int max_count ,
141+ int group_id, int member_id, void *target_buffer, int max_length ,
126142 int time_stamp, DataSubset& data_found
127143);
128144
129145// !@brief Overload of #Fenix_Data_member_lrestore
130146int member_lrestore (
131- int group_id, int member_id, void *target_buffer, int max_count ,
147+ int group_id, int member_id, void *target_buffer, int max_length ,
132148 int time_stamp, DataSubset& data_found
133149);
134150
0 commit comments