Skip to content

Commit c105f57

Browse files
Reorganize to allow c++ in internal headers
1 parent 80abeeb commit c105f57

35 files changed

+93
-392
lines changed

include/fenix.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@
6363
#if defined(c_plusplus) || defined(__cplusplus)
6464
extern "C" {
6565
#endif
66+
67+
6668
#include "fenix_data_subset.h"
67-
#include "fenix_process_recovery.h"
69+
#include "fenix_init.h"
6870

6971
/**
7072
* @file
File renamed without changes.

include/fenix_data_group.h renamed to include/fenix_data_group.hpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,21 @@
5656
#ifndef __FENIX_DATA_GROUP_H__
5757
#define __FENIX_DATA_GROUP_H__
5858

59+
#include <vector>
60+
5961
#include <mpi.h>
6062
#include "fenix.h"
61-
#include "fenix_data_member.h"
62-
#include "fenix_data_packet.h"
63-
#include "fenix_util.h"
63+
#include "fenix_data_member.hpp"
64+
#include "fenix_data_packet.hpp"
65+
#include "fenix_util.hpp"
6466
#include "fenix_data_subset.h"
6567

6668
#define __FENIX_DEFAULT_GROUP_SIZE 32
6769

6870
typedef struct __fenix_group_vtbl fenix_group_vtbl_t;
6971
typedef struct __fenix_group fenix_group_t;
7072

73+
7174
//This defines the functions which must be implemented by the group
7275
typedef struct __fenix_group_vtbl {
7376
int (*group_delete)(fenix_group_t* group);
@@ -165,7 +168,7 @@ void __fenix_data_recovery_reinit( fenix_data_recovery_t *dr, fenix_two_containe
165168

166169
void __fenix_ensure_data_recovery_capacity( fenix_data_recovery_t *dr);
167170

168-
int __fenix_search_groupid( int key, fenix_data_recovery_t *dr );
171+
int __fenix_search_groupid( int key, fenix_data_recovery_t *dr);
169172

170173
int __fenix_find_next_group_position( fenix_data_recovery_t *dr );
171174

include/fenix_data_member.h renamed to include/fenix_data_member.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
#define __FENIX_DATA_MEMBER_H__
5858

5959
#include <mpi.h>
60-
#include "fenix_data_packet.h"
61-
#include "fenix_util.h"
60+
#include "fenix_data_packet.hpp"
61+
#include "fenix_util.hpp"
6262

6363

6464
#define __FENIX_DEFAULT_MEMBER_SIZE 512
File renamed without changes.

include/fenix_data_policy.h renamed to include/fenix_data_policy.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
#include <mpi.h>
6161
#include "fenix.h"
62-
#include "fenix_data_group.h"
62+
#include "fenix_data_group.hpp"
6363

6464
int __fenix_policy_get_group(fenix_group_t** group, MPI_Comm comm,
6565
int timestart, int depth, int policy_name, void* policy_value, int* flag);

include/fenix_data_policy_in_memory_raid.h renamed to include/fenix_data_policy_in_memory_raid.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
#define __FENIX_DATA_POLICY_IN_MEMORY_RAID_H__
5959

6060
#include <mpi.h>
61-
#include "fenix_data_group.h"
61+
#include "fenix_data_group.hpp"
6262

6363
void __fenix_policy_in_memory_raid_get_group(fenix_group_t** group, MPI_Comm comm,
6464
int timestart, int depth, void* policy_value, int* flag);

include/fenix_data_recovery.h renamed to include/fenix_data_recovery.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@
5858
#define __FENIX_DATA_RECOVERY__
5959

6060

61-
#include "fenix_data_group.h"
62-
#include "fenix_data_member.h"
61+
#include "fenix_data_group.hpp"
62+
#include "fenix_data_member.hpp"
6363
#include "fenix_data_subset.h"
64-
#include "fenix_util.h"
64+
#include "fenix_util.hpp"
6565
#include <mpi.h>
6666
#include <stdio.h>
6767
#include <stdlib.h>

include/fenix_ext.h renamed to include/fenix_ext.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959

6060
#include <mpi.h>
6161
#include "fenix.h"
62-
#include "fenix_opt.h"
63-
#include "fenix_data_group.h"
64-
#include "fenix_process_recovery.h"
62+
#include "fenix_opt.hpp"
63+
#include "fenix_data_group.hpp"
64+
#include "fenix_process_recovery.hpp"
6565

6666
typedef struct {
6767
int num_inital_ranks; // Keeps the global MPI rank ID at Fenix_init
@@ -87,7 +87,6 @@ typedef struct {
8787
int *ret_error;
8888

8989
fenix_callback_list_t* callback_list; // singly linked list for user-defined Fenix callback functions
90-
//fenix_communicator_list_t* communicator_list; // singly linked list for Fenix resilient communicators
9190
fenix_debug_opt_t options; // This is reserved to store the user options
9291

9392
MPI_Comm *world; // Duplicate of the MPI communicator provided by user

include/fenix_f.h

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)