|
1 | 1 | #pragma once |
2 | 2 |
|
3 | 3 | #include "common/macros.hpp" |
| 4 | +#include "KineticReactions.hpp" |
4 | 5 |
|
5 | 6 | /** @file MixedEquilibriumKineticReactions.hpp |
6 | 7 | * @brief Header file for the MixedEquilibriumKineticReactions class. |
@@ -71,39 +72,47 @@ class MixedEquilibriumKineticReactions |
71 | 72 |
|
72 | 73 | template< typename PARAMS_DATA, |
73 | 74 | typename ARRAY_1D_TO_CONST, |
| 75 | + typename ARRAY_1D_TO_CONST2, |
74 | 76 | typename ARRAY_1D, |
75 | 77 | typename ARRAY_2D > |
76 | 78 | static HPCREACT_HOST_DEVICE inline void |
77 | 79 | computeReactionRates( RealType const & temperature, |
78 | 80 | PARAMS_DATA const & params, |
79 | 81 | ARRAY_1D_TO_CONST const & logPrimarySpeciesConcentrations, |
80 | | - ARRAY_1D_TO_CONST const & logSecondarySpeciesConcentrations, |
| 82 | + ARRAY_1D_TO_CONST2 const & logSecondarySpeciesConcentrations, |
81 | 83 | ARRAY_1D & reactionRates, |
82 | | - ARRAY_2D & dReactionRates_dPrimarySpeciesConcentrations ) |
| 84 | + ARRAY_2D & dReactionRates_dLogPrimarySpeciesConcentrations ) |
83 | 85 |
|
84 | 86 | { |
85 | 87 | computeReactionRates_impl( temperature, |
86 | 88 | params, |
87 | 89 | logPrimarySpeciesConcentrations, |
88 | 90 | logSecondarySpeciesConcentrations, |
89 | 91 | reactionRates, |
90 | | - dReactionRates_dPrimarySpeciesConcentrations ); |
| 92 | + dReactionRates_dLogPrimarySpeciesConcentrations ); |
91 | 93 | } |
92 | 94 |
|
93 | 95 | template< typename PARAMS_DATA, |
94 | 96 | typename ARRAY_1D_TO_CONST, |
| 97 | + typename ARRAY_1D_TO_CONST2, |
95 | 98 | typename ARRAY_2D_TO_CONST, |
96 | 99 | typename ARRAY_1D, |
97 | 100 | typename ARRAY_2D > |
98 | 101 | static HPCREACT_HOST_DEVICE inline void |
99 | 102 | computeAggregateSpeciesRates( PARAMS_DATA const & params, |
100 | 103 | ARRAY_1D_TO_CONST const & speciesConcentration, |
101 | | - ARRAY_1D_TO_CONST const & reactionRates, |
| 104 | + ARRAY_1D_TO_CONST2 const & reactionRates, |
102 | 105 | ARRAY_2D_TO_CONST const & reactionRatesDerivatives, |
103 | 106 | ARRAY_1D & aggregatesRates, |
104 | 107 | ARRAY_2D & aggregatesRatesDerivatives ) |
105 | 108 | { |
106 | | - computeAggregateSpeciesRates_impl< true >( params, |
| 109 | + computeAggregateSpeciesRates_impl< PARAMS_DATA, |
| 110 | + ARRAY_1D_TO_CONST, |
| 111 | + ARRAY_1D_TO_CONST2, |
| 112 | + ARRAY_2D_TO_CONST, |
| 113 | + ARRAY_1D, |
| 114 | + ARRAY_2D, |
| 115 | + true >( params, |
107 | 116 | speciesConcentration, |
108 | 117 | reactionRates, |
109 | 118 | reactionRatesDerivatives, |
@@ -131,28 +140,30 @@ class MixedEquilibriumKineticReactions |
131 | 140 |
|
132 | 141 | template< typename PARAMS_DATA, |
133 | 142 | typename ARRAY_1D_TO_CONST, |
| 143 | + typename ARRAY_1D_TO_CONST2, |
134 | 144 | typename ARRAY_1D, |
135 | 145 | typename ARRAY_2D > |
136 | 146 | static HPCREACT_HOST_DEVICE void |
137 | 147 | computeReactionRates_impl( RealType const & temperature, |
138 | 148 | PARAMS_DATA const & params, |
139 | 149 | ARRAY_1D_TO_CONST const & logPrimarySpeciesConcentrations, |
140 | | - ARRAY_1D_TO_CONST const & logSecondarySpeciesConcentrations, |
| 150 | + ARRAY_1D_TO_CONST2 const & logSecondarySpeciesConcentrations, |
141 | 151 | ARRAY_1D & reactionRates, |
142 | | - ARRAY_2D & dReactionRates_dPrimarySpeciesConcentrations ); |
| 152 | + ARRAY_2D & dReactionRates_dLogPrimarySpeciesConcentrations ); |
143 | 153 |
|
144 | 154 |
|
145 | 155 |
|
146 | 156 | template< typename PARAMS_DATA, |
147 | 157 | typename ARRAY_1D_TO_CONST, |
| 158 | + typename ARRAY_1D_TO_CONST2, |
148 | 159 | typename ARRAY_2D_TO_CONST, |
149 | 160 | typename ARRAY_1D, |
150 | 161 | typename ARRAY_2D, |
151 | 162 | bool CALCULATE_DERIVATIVES > |
152 | 163 | static HPCREACT_HOST_DEVICE void |
153 | 164 | computeAggregateSpeciesRates_impl( PARAMS_DATA const & params, |
154 | 165 | ARRAY_1D_TO_CONST const & speciesConcentration, |
155 | | - ARRAY_1D_TO_CONST const & reactionRates, |
| 166 | + ARRAY_1D_TO_CONST2 const & reactionRates, |
156 | 167 | ARRAY_2D_TO_CONST const & reactionRatesDerivatives, |
157 | 168 | ARRAY_1D & aggregatesRates, |
158 | 169 | ARRAY_2D & aggregatesRatesDerivatives ); |
|
0 commit comments