Skip to content

Commit 3033a79

Browse files
committed
Merge pull request #556 from ReactionMechanismGenerator/fixLiquidReactorBug
Fix liquid reactor bug
2 parents 9f9e26b + 42ceaaf commit 3033a79

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rmgpy/solver/base.pyx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,6 @@ cdef class ReactionSystem(DASx):
372372
cdef int i, j, k
373373
cdef numpy.ndarray[numpy.float64_t, ndim=1] forwardRateCoefficients, coreSpeciesConcentrations
374374
cdef double prevTime, totalMoles, c, volume, RTP, unimolecularThresholdVal, bimolecularThresholdVal
375-
#cdef numpy.ndarray[bool, ndim=1] unimolecularThreshold
376-
#cdef numpy.ndarray[bool, ndim=2] bimolecularThreshold
377375

378376
# cython declations for sensitivity analysis
379377
cdef numpy.ndarray[numpy.int_t, ndim=1] sensSpeciesIndices
@@ -468,7 +466,7 @@ cdef class ReactionSystem(DASx):
468466
networkLeakRateRatios = numpy.abs(self.networkLeakRates/charRate)
469467

470468
# Update the maximum species rate and maximum network leak rate arrays
471-
for i in xrange(numCoreSpecies):
469+
for index in xrange(numCoreSpecies):
472470
if maxCoreSpeciesRates[index] < coreSpeciesRates[index]:
473471
maxCoreSpeciesRates[index] = coreSpeciesRates[index]
474472
for index in xrange(numEdgeSpecies):

0 commit comments

Comments
 (0)