-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtrixi.h
More file actions
42 lines (34 loc) · 970 Bytes
/
trixi.h
File metadata and controls
42 lines (34 loc) · 970 Bytes
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
#ifndef TRIXI_H_
#define TRIXI_H_
/**
* @addtogroup api_c C API
* @{
*/
// Setup
void trixi_initialize(const char * project_directory, const char * depot_path);
void trixi_finalize();
// Version information
int trixi_version_library_major();
int trixi_version_library_minor();
int trixi_version_library_patch();
const char* trixi_version_library();
const char* trixi_version_julia();
const char* trixi_version_julia_extended();
// Simulation control
int trixi_initialize_simulation(const char * libelixir);
void trixi_finalize_simulation(int handle);
int trixi_is_finished(int handle);
void trixi_step(int handle);
// Simulation data
int trixi_ndims(int handle);
int trixi_nelements(int handle);
int trixi_nelements_global(int handle);
int trixi_nvariables(int handle);
double trixi_calculate_dt(int handle);
void trixi_load_cell_averages(double * data, int handle);
// Misc
void trixi_eval_julia(const char * code);
/**
* @}
*/
#endif // ifndef LIBTRIXI_H_