forked from open-atmos/PyPartMC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_part.hpp
110 lines (103 loc) · 2.62 KB
/
run_part.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
/*##################################################################################################
# This file is a part of PyPartMC licensed under the GNU General Public License v3 (LICENSE file) #
# Copyright (C) 2022 University of Illinois Urbana-Champaign #
# Authors: https://github.com/open-atmos/PyPartMC/graphs/contributors #
##################################################################################################*/
#pragma once
#include "aero_data.hpp"
#include "aero_state.hpp"
#include "env_state.hpp"
#include "gas_data.hpp"
#include "gas_state.hpp"
#include "run_part_opt.hpp"
#include "scenario.hpp"
#include "camp_core.hpp"
#include "photolysis.hpp"
extern "C" void f_run_part(
const void*,
const void*,
const void*,
const void*,
const void*,
const void*,
const void*,
const void*,
const void*
) noexcept;
extern "C" void f_run_part_timestep(
const void*,
void*,
const void*,
void*,
const void*,
void*,
const void*,
const void*,
const void*,
const int *,
const double*,
double*,
double*,
int*
) noexcept;
extern "C" void f_run_part_timeblock(
const void*,
void*,
const void*,
void*,
const void*,
void*,
const void*,
const void*,
const void*,
const int *,
const int *,
const double *,
double*,
double*,
int*
) noexcept;
void run_part(
const Scenario &scenario,
EnvState &env_state,
const AeroData &aero_data,
AeroState &aero_state,
const GasData &gas_data,
GasState &gas_state,
const RunPartOpt &run_part_opt,
const CampCore &camp_core,
const Photolysis &photolysis
);
std::tuple<double, double, int> run_part_timestep(
const Scenario &scenario,
EnvState &env_state,
const AeroData &aero_data,
AeroState &aero_state,
const GasData &gas_data,
GasState &gas_state,
const RunPartOpt &run_part_opt,
const CampCore &camp_core,
const Photolysis &photolysis,
const int &i_time,
const double &t_start,
double &last_output_time,
double &last_progress_time,
int &i_output
);
std::tuple<double, double, int> run_part_timeblock(
const Scenario &scenario,
EnvState &env_state,
const AeroData &aero_data,
AeroState &aero_state,
const GasData &gas_data,
GasState &gas_state,
const RunPartOpt &run_part_opt,
const CampCore &camp_core,
const Photolysis &photolysis,
const int &i_time,
const int &i_next,
const double &t_start,
double &last_output_time,
double &last_progress_time,
int &i_output
);