@@ -53,7 +53,7 @@ struct EquilibriumReactionsParameters
5353
5454 HPCREACT_HOST_DEVICE
5555 constexpr
56- EquilibriumReactionsParameters ( CArrayWrapper< RealType , NUM_REACTIONS, NUM_SPECIES > const & stoichiometricMatrix,
56+ EquilibriumReactionsParameters ( CArrayWrapper< IndexType , NUM_REACTIONS, NUM_SPECIES > const & stoichiometricMatrix,
5757 CArrayWrapper< RealType, NUM_REACTIONS > equilibriumConstant,
5858 CArrayWrapper< IntType, NUM_REACTIONS > mobileSecondarySpeciesFlag ):
5959 m_stoichiometricMatrix ( stoichiometricMatrix ),
@@ -62,11 +62,11 @@ struct EquilibriumReactionsParameters
6262 {}
6363
6464
65- HPCREACT_HOST_DEVICE RealType stoichiometricMatrix ( IndexType const r, int const i ) const { return m_stoichiometricMatrix[r][i]; }
65+ HPCREACT_HOST_DEVICE IndexType stoichiometricMatrix ( IndexType const r, int const i ) const { return m_stoichiometricMatrix[r][i]; }
6666 HPCREACT_HOST_DEVICE RealType equilibriumConstant ( IndexType const r ) const { return m_equilibriumConstant[r]; }
6767 HPCREACT_HOST_DEVICE IntType mobileSecondarySpeciesFlag ( IndexType const r ) const { return m_mobileSecondarySpeciesFlag[r]; }
6868
69- CArrayWrapper< RealType , NUM_REACTIONS, NUM_SPECIES > m_stoichiometricMatrix;
69+ CArrayWrapper< IndexType , NUM_REACTIONS, NUM_SPECIES > m_stoichiometricMatrix;
7070 CArrayWrapper< RealType, NUM_REACTIONS > m_equilibriumConstant;
7171 CArrayWrapper< IntType, NUM_REACTIONS > m_mobileSecondarySpeciesFlag;
7272};
@@ -87,7 +87,7 @@ struct KineticReactionsParameters
8787 HPCREACT_HOST_DEVICE static constexpr IndexType numReactions () { return NUM_REACTIONS; }
8888
8989 HPCREACT_HOST_DEVICE
90- constexpr KineticReactionsParameters ( CArrayWrapper< RealType , NUM_REACTIONS, NUM_SPECIES > const & stoichiometricMatrix,
90+ constexpr KineticReactionsParameters ( CArrayWrapper< IndexType , NUM_REACTIONS, NUM_SPECIES > const & stoichiometricMatrix,
9191 CArrayWrapper< RealType, NUM_REACTIONS > const & rateConstantForward,
9292 CArrayWrapper< RealType, NUM_REACTIONS > const & rateConstantReverse,
9393 CArrayWrapper< RealType, NUM_REACTIONS > const & equilibriumConstant,
@@ -100,14 +100,14 @@ struct KineticReactionsParameters
100100 {}
101101
102102
103- HPCREACT_HOST_DEVICE RealType stoichiometricMatrix ( IndexType const r, int const i ) const { return m_stoichiometricMatrix[r][i]; }
103+ HPCREACT_HOST_DEVICE IndexType stoichiometricMatrix ( IndexType const r, int const i ) const { return m_stoichiometricMatrix[r][i]; }
104104 HPCREACT_HOST_DEVICE RealType rateConstantForward ( IndexType const r ) const { return m_rateConstantForward[r]; }
105105 HPCREACT_HOST_DEVICE RealType rateConstantReverse ( IndexType const r ) const { return m_rateConstantReverse[r]; }
106106 HPCREACT_HOST_DEVICE RealType equilibriumConstant ( IndexType const r ) const { return m_rateConstantForward[r] / m_rateConstantReverse[r]; }
107107
108108 HPCREACT_HOST_DEVICE IntType reactionRatesUpdateOption () const { return m_reactionRatesUpdateOption; }
109109
110- CArrayWrapper< RealType , NUM_REACTIONS, NUM_SPECIES > m_stoichiometricMatrix;
110+ CArrayWrapper< IndexType , NUM_REACTIONS, NUM_SPECIES > m_stoichiometricMatrix;
111111 CArrayWrapper< RealType, NUM_REACTIONS > m_rateConstantForward;
112112 CArrayWrapper< RealType, NUM_REACTIONS > m_rateConstantReverse;
113113 CArrayWrapper< RealType, NUM_REACTIONS > m_equilibiriumConstant;
@@ -131,7 +131,7 @@ struct MixedReactionsParameters
131131
132132 constexpr MixedReactionsParameters () = default;
133133
134- constexpr MixedReactionsParameters ( CArrayWrapper< RealType , NUM_REACTIONS, NUM_SPECIES > const & stoichiometricMatrix,
134+ constexpr MixedReactionsParameters ( CArrayWrapper< IndexType , NUM_REACTIONS, NUM_SPECIES > const & stoichiometricMatrix,
135135 CArrayWrapper< RealType, NUM_REACTIONS > const & equilibriumConstant,
136136 CArrayWrapper< RealType, NUM_REACTIONS > const & rateConstantForward,
137137 CArrayWrapper< RealType, NUM_REACTIONS > const & rateConstantReverse,
@@ -162,7 +162,7 @@ struct MixedReactionsParameters
162162 EquilibriumReactionsParameters< RealType, IntType, IndexType, numSpecies(), numEquilibriumReactions() >
163163 equilibriumReactionsParameters () const
164164 {
165- CArrayWrapper< RealType , numEquilibriumReactions (), numSpecies () > eqMatrix{};
165+ CArrayWrapper< IndexType , numEquilibriumReactions (), numSpecies () > eqMatrix{};
166166 CArrayWrapper< RealType, numEquilibriumReactions () > eqConstants{};
167167 CArrayWrapper< IntType, numEquilibriumReactions () > mobileSpeciesFlags{};
168168
@@ -184,7 +184,7 @@ struct MixedReactionsParameters
184184 KineticReactionsParameters< RealType, IntType, IndexType, numSpecies(), numKineticReactions() >
185185 kineticReactionsParameters () const
186186 {
187- CArrayWrapper< RealType , numKineticReactions (), numSpecies () > kineticMatrix{};
187+ CArrayWrapper< IndexType , numKineticReactions (), numSpecies () > kineticMatrix{};
188188 CArrayWrapper< RealType, numKineticReactions () > rateConstantForward{};
189189 CArrayWrapper< RealType, numKineticReactions () > rateConstantReverse{};
190190 CArrayWrapper< RealType, numKineticReactions () > equilibriumConstant{};
@@ -239,12 +239,12 @@ struct MixedReactionsParameters
239239 }
240240 }
241241
242- HPCREACT_HOST_DEVICE RealType stoichiometricMatrix ( IndexType const r, int const i ) const { return m_stoichiometricMatrix[r][i]; }
242+ HPCREACT_HOST_DEVICE IndexType stoichiometricMatrix ( IndexType const r, int const i ) const { return m_stoichiometricMatrix[r][i]; }
243243 HPCREACT_HOST_DEVICE RealType equilibriumConstant ( IndexType const r ) const { return m_equilibriumConstant[r]; }
244244 HPCREACT_HOST_DEVICE RealType rateConstantForward ( IndexType const r ) const { return m_rateConstantForward[r]; }
245245 HPCREACT_HOST_DEVICE RealType rateConstantReverse ( IndexType const r ) const { return m_rateConstantReverse[r]; }
246246
247- CArrayWrapper< RealType , NUM_REACTIONS, NUM_SPECIES > m_stoichiometricMatrix;
247+ CArrayWrapper< IndexType , NUM_REACTIONS, NUM_SPECIES > m_stoichiometricMatrix;
248248 CArrayWrapper< RealType, NUM_REACTIONS > m_equilibriumConstant;
249249 CArrayWrapper< RealType, NUM_REACTIONS > m_rateConstantForward;
250250 CArrayWrapper< RealType, NUM_REACTIONS > m_rateConstantReverse;
0 commit comments