|
| 1 | +/*################################################################################################## |
| 2 | +# This file is a part of PyPartMC licensed under the GNU General Public License v3 (LICENSE file) # |
| 3 | +# Copyright (C) 2022 University of Illinois Urbana-Champaign # |
| 4 | +# Authors: https://github.com/open-atmos/PyPartMC/graphs/contributors # |
| 5 | +##################################################################################################*/ |
| 6 | + |
| 7 | +#include "run_part.hpp" |
| 8 | + |
| 9 | +void run_part( |
| 10 | + const Scenario &scenario, |
| 11 | + EnvState &env_state, |
| 12 | + const AeroData &aero_data, |
| 13 | + AeroState &aero_state, |
| 14 | + const GasData &gas_data, |
| 15 | + GasState &gas_state, |
| 16 | + const RunPartOpt &run_part_opt, |
| 17 | + const CampCore &camp_core, |
| 18 | + const Photolysis &photolysis |
| 19 | +) { |
| 20 | + f_run_part( |
| 21 | + scenario.ptr.f_arg(), |
| 22 | + env_state.ptr.f_arg_non_const(), |
| 23 | + aero_data.ptr.f_arg(), |
| 24 | + aero_state.ptr.f_arg_non_const(), |
| 25 | + gas_data.ptr.f_arg(), |
| 26 | + gas_state.ptr.f_arg_non_const(), |
| 27 | + run_part_opt.ptr.f_arg(), |
| 28 | + camp_core.ptr.f_arg(), |
| 29 | + photolysis.ptr.f_arg() |
| 30 | + ); |
| 31 | +} |
| 32 | + |
| 33 | +void run_part_timestep( |
| 34 | + const Scenario &scenario, |
| 35 | + EnvState &env_state, |
| 36 | + const AeroData &aero_data, |
| 37 | + AeroState &aero_state, |
| 38 | + const GasData &gas_data, |
| 39 | + GasState &gas_state, |
| 40 | + const RunPartOpt &run_part_opt, |
| 41 | + const CampCore &camp_core, |
| 42 | + const Photolysis &photolysis, |
| 43 | + const int &i_time, |
| 44 | + const double &t_start |
| 45 | +) { |
| 46 | + f_run_part_timestep( |
| 47 | + scenario.ptr.f_arg(), |
| 48 | + env_state.ptr.f_arg_non_const(), |
| 49 | + aero_data.ptr.f_arg(), |
| 50 | + aero_state.ptr.f_arg_non_const(), |
| 51 | + gas_data.ptr.f_arg(), |
| 52 | + gas_state.ptr.f_arg_non_const(), |
| 53 | + run_part_opt.ptr.f_arg(), |
| 54 | + camp_core.ptr.f_arg(), |
| 55 | + photolysis.ptr.f_arg(), |
| 56 | + &i_time, |
| 57 | + &t_start |
| 58 | + ); |
| 59 | +} |
| 60 | + |
| 61 | +void run_part_timeblock( |
| 62 | + const Scenario &scenario, |
| 63 | + EnvState &env_state, |
| 64 | + const AeroData &aero_data, |
| 65 | + AeroState &aero_state, |
| 66 | + const GasData &gas_data, |
| 67 | + GasState &gas_state, |
| 68 | + const RunPartOpt &run_part_opt, |
| 69 | + const CampCore &camp_core, |
| 70 | + const Photolysis &photolysis, |
| 71 | + const int &i_time, |
| 72 | + const int &i_next, |
| 73 | + const double &t_start |
| 74 | +) { |
| 75 | + f_run_part_timeblock( |
| 76 | + scenario.ptr.f_arg(), |
| 77 | + env_state.ptr.f_arg_non_const(), |
| 78 | + aero_data.ptr.f_arg(), |
| 79 | + aero_state.ptr.f_arg_non_const(), |
| 80 | + gas_data.ptr.f_arg(), |
| 81 | + gas_state.ptr.f_arg_non_const(), |
| 82 | + run_part_opt.ptr.f_arg(), |
| 83 | + camp_core.ptr.f_arg(), |
| 84 | + photolysis.ptr.f_arg(), |
| 85 | + &i_time, |
| 86 | + &i_next, |
| 87 | + &t_start |
| 88 | + ); |
| 89 | +} |
0 commit comments