Added .h files.

This commit is contained in:
Harry Moffat 2009-01-05 23:20:43 +00:00
parent e0075a8ba3
commit aad776eba7
4 changed files with 9 additions and 0 deletions

View file

@ -9,6 +9,7 @@
*/
#include "ct_defs.h"
#include "global.h"
#include "ThermoPhase.h"
#include "MultiPhase.h"

View file

@ -25,6 +25,7 @@
#include "DenseMatrix.h"
#include "ct_defs.h"
#include "global.h"
#include "sort.h"
#include "PropertyCalculator.h"
#include "ctexceptions.h"

View file

@ -15,6 +15,7 @@
#include "ThermoPhase.h"
#include "DenseMatrix.h"
#include "stringUtils.h"
#include "global.h"
using namespace std;
@ -367,6 +368,11 @@ namespace Cantera {
void MultiPhase::setPhaseMoleFractions(const index_t n, const doublereal* const x) {
phase_t* p = m_phase[n];
p->setState_TPX(m_temp, m_press, x);
int nsp = p->nSpecies();
int istart = m_spstart[n];
for (int k = 0; k < nsp; k++) {
m_moleFractions[istart+k] = x[k];
}
}
// Set the species moles using a map. The map \a xMap maps

View file

@ -8,6 +8,7 @@
#include "ChemEquil.h"
#include "MultiPhaseEquil.h"
#include "vcs_MultiPhaseEquil.h"
#include "global.h"
namespace Cantera {