From a2d26cd80a998e50df08e02bed06c4a45356cc97 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 6 Jan 2014 18:46:19 +0000 Subject: [PATCH] [Kinetics] Simplifiy implementation of Kinetics::nTotalSpecies --- include/cantera/kinetics/Kinetics.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/cantera/kinetics/Kinetics.h b/include/cantera/kinetics/Kinetics.h index 57e7d7fb1..57a561f86 100644 --- a/include/cantera/kinetics/Kinetics.h +++ b/include/cantera/kinetics/Kinetics.h @@ -292,12 +292,7 @@ public: * methods that return the species production rates, for example. */ size_t nTotalSpecies() const { - size_t n=0, np; - np = nPhases(); - for (size_t p = 0; p < np; p++) { - n += thermo(p).nSpecies(); - } - return n; + return m_kk; } /**