-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathanydsl_includes.h
51 lines (50 loc) · 2.08 KB
/
anydsl_includes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef ANYDSL_INCLUDES_H
#define ANYDSL_INCLUDES_H
#include <cstdint>
extern "C" {
struct Vector3D {
double x;
double y;
double z;
};
int md_initialize_grid(double const *, Vector3D const *, Vector3D const *, int, double const *, double const *, double, int, int);
void md_rescale_grid(double const *);
void md_copy_data_from_accelerator();
void md_copy_data_to_accelerator();
void md_initial_integration(double);
void md_final_integration(double);
void md_enforce_pbc();
int md_write_grid_data_to_arrays(double *, Vector3D *, Vector3D *, Vector3D *);
int md_write_grid_ghost_data_to_arrays(double *, Vector3D *, Vector3D *, Vector3D *);
int md_write_grid_aabb_data_to_arrays(double *, Vector3D *, Vector3D *, Vector3D *);
void md_distribute_particles();
void md_assemble_neighborlists(bool, double);
void md_deallocate_grid();
void md_print_grid();
void md_print_ghost();
void md_create_velocity(double);
void md_compute_lennard_jones(bool, double, double, double);
void md_compute_dem(bool, double, double, double, double, double);
void md_mpi_initialize();
void md_mpi_finalize();
void md_synchronize_ghost_layer();
void md_borders();
void md_exchange_particles();
double md_get_send_buffer_value(int);
void md_set_recv_buffer_value(int, double);
void md_resize_recv_buffer_capacity(int);
int md_serialize_particles(double const *);
void md_deserialize_particles(int);
int md_get_world_size();
int md_get_world_rank();
int md_get_number_of_particles();
int md_get_number_of_ghost_particles();
void md_get_node_bounding_box(double const *, double (*)[6]);
void md_compute_boundary_weights(double, double, double, double, double, double, unsigned long int *, unsigned long int *);
void md_update_neighborhood(int, int, int const *, int const *, double const *);
void md_report_iterations();
void md_report_particles();
void md_report_time(double, double, double, double, double, double);
void md_barrier();
}
#endif // ANYDSL_INCLUDES