Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SpeciesThermo.cpp
2 
3 namespace Cantera {
4 
5 bool SpeciesThermo::ready(size_t nSpecies) {
6  if (m_installed.size() < nSpecies) {
7  return false;
8  }
9  for (size_t k = 0; k < nSpecies; k++) {
10  if (!m_installed[k]) {
11  return false;
12  }
13  }
14  return true;
15 }
16 
18  if (k >= m_installed.size()) {
19  m_installed.resize(k+1, false);
20  }
21  m_installed[k] = true;
22 }
23 
24 }
Virtual base class for the calculation of multiple-species thermodynamic reference-state property man...
bool ready(size_t nSpecies)
Check if data for all species (0 through nSpecies-1) has been installed.
void markInstalled(size_t k)
Mark species k as having its thermodynamic data installed.