Skip to content

Commit

Permalink
Replace deprecated use of surfacePhaseIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
speth authored and ischoegl committed Jun 14, 2023
1 parent e330fb8 commit ce7f7cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/zeroD/FlowReactor.cpp
Expand Up @@ -321,7 +321,7 @@ void FlowReactor::evalDae(double time, double* y, double* ydot, double* params,
SurfPhase* surf = m_surf->thermo();
size_t nk = surf->nSpecies();
kin->getNetProductionRates(m_sdot_temp.data());
size_t ns = kin->surfacePhaseIndex();
size_t ns = kin->reactionPhaseIndex();
size_t surfloc = kin->kineticsSpeciesIndex(0,ns);
double sum = y[loc];
for (size_t i = 1; i < nk; ++i)
Expand Down
2 changes: 1 addition & 1 deletion src/zeroD/Reactor.cpp
Expand Up @@ -373,7 +373,7 @@ void Reactor::evalSurfaces(double* RHS, double* sdot)
double sum = 0.0;
S->syncState();
kin->getNetProductionRates(&m_work[0]);
size_t ns = kin->surfacePhaseIndex();
size_t ns = kin->reactionPhaseIndex();
size_t surfloc = kin->kineticsSpeciesIndex(0,ns);
for (size_t k = 1; k < nk; k++) {
RHS[loc + k] = m_work[surfloc + k] * rs0 * surf->size(k);
Expand Down

0 comments on commit ce7f7cf

Please sign in to comment.