示例#1
0
void Phase::getMolecularWeights(vector_fp& weights) const
{
    const vector_fp& mw = molecularWeights();
    if (weights.size() < mw.size()) {
        weights.resize(mw.size());
    }
    copy(mw.begin(), mw.end(), weights.begin());
}
示例#2
0
void Phase::getMolecularWeights(doublereal* weights) const
{
    const vector_fp& mw = molecularWeights();
    copy(mw.begin(), mw.end(), weights);
}
示例#3
0
void Phase::getMolecularWeights(vector_fp& weights) const
{
    weights = molecularWeights();
}
示例#4
0
void Phase::freezeSpecies()
{
    m_speciesFrozen = true;
    init(molecularWeights());
}