-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpipe_fortran_python.hpp
128 lines (115 loc) · 2.78 KB
/
pipe_fortran_python.hpp
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#include <string>
#include <vector>
extern "C" {
void c_config(
const char *dir_transition_rates,
const char *filename_molecule,
const char *solve_method,
const char *f_occupation_init_method,
char* o_column_names,
char* o_molecule_name,
int len1, int len2, int len3, int len4,
double tbg,
double beam_FWHM_in_arcsec,
bool verbose,
bool recalculatefreqwitheupelow,
bool ilevel_subtract_one,
double max_code_run_time,
double max_evol_time,
double rtol,
double atol,
int *n_levels,
int *n_item,
int *n_transitions,
int *n_partners,
int *len5,
int *len6);
void c_run_one_params(
double Tkin,
double dv_CGS,
double dens_X_CGS,
double Ncol_X_CGS,
double H2_density_CGS,
double HI_density_CGS,
double oH2_density_CGS,
double pH2_densty_CGS,
double HII_density_CGS,
double Electron_density_CGS,
int n_levels,
int n_item,
int n_transitions,
double *energies,
double *f_occupations,
double *data_transitions,
double *cooling_rate,
bool donotsolve,
int collisioPartnerCrit,
double Tbg,
double beam_FWHM_in_arcsec,
double max_code_run_time,
double max_evol_time,
double rtol,
double atol,
const char *solve_method,
const char *f_occupation_init_method,
const char *geotype,
int len3,
int len4,
int len5);
void c_get_flag(bool *flag);
void c_get_sQum_s(char **sQnum_cptr, int n_levels);
void c_deallocate_sQnum_s(void);
}
void cc_config(
const std::string dir_transition_rates,
const std::string filename_molecule,
const std::string solve_method,
const std::string f_occupation_init_method,
std::string& o_column_names,
std::string& o_molecule_name,
std::vector<std::string> *sQnum_s,
double tbg,
double beam_FWHM_in_arcsec,
bool verbose,
bool recalculatefreqwitheupelow,
bool ilevel_subtract_one,
double max_code_run_time,
double max_evol_time,
double rtol,
double atol,
int *n_levels,
int *n_item,
int *n_transitions,
int *n_partners,
int *len5,
int *len6);
void cc_run_one_params(
double Tkin,
double dv_CGS,
double dens_X_CGS,
double Ncol_X_CGS,
double H2_density_CGS,
double HI_density_CGS,
double oH2_density_CGS,
double pH2_densty_CGS,
double HII_density_CGS,
double Electron_density_CGS,
int n_levels,
int n_item,
int n_transitions,
double *energies,
double *f_occupations,
double *data_transitions,
double *cooling_rate,
bool donotsolve,
int collisioPartnerCrit,
double Tbg,
double beam_FWHM_in_arcsec,
double max_code_run_time,
double max_evol_time,
double rtol,
double atol,
const std::string solve_method,
const std::string f_occupation_init_method,
const std::string geotype);
void cc_get_flag(bool *flag);