Fixed a solaris compilation error: inline functions need to be at the
top of files
This commit is contained in:
parent
c0543fe571
commit
943bc7fe4d
2 changed files with 8 additions and 8 deletions
|
|
@ -28,6 +28,13 @@ using namespace std;
|
||||||
|
|
||||||
namespace Cantera {
|
namespace Cantera {
|
||||||
|
|
||||||
|
inline void State::stateMFChangeCalc(bool forcerChange) {
|
||||||
|
// Right now we assume that the mole fractions have changed every time
|
||||||
|
// the function is called
|
||||||
|
m_stateNum++;
|
||||||
|
if (m_stateNum > 1000000) m_stateNum = -10000000;
|
||||||
|
}
|
||||||
|
|
||||||
State::State() :
|
State::State() :
|
||||||
m_kk(0),
|
m_kk(0),
|
||||||
m_temp(0.0),
|
m_temp(0.0),
|
||||||
|
|
@ -236,13 +243,6 @@ namespace Cantera {
|
||||||
m_dens = molarDensity*meanMolecularWeight();
|
m_dens = molarDensity*meanMolecularWeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void State::stateMFChangeCalc(bool forcerChange) {
|
|
||||||
// Right now we assume that the mole fractions have changed every time
|
|
||||||
// the function is called
|
|
||||||
m_stateNum++;
|
|
||||||
if (m_stateNum > 1000000) m_stateNum = -10000000;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void State::init(const array_fp& mw) {
|
void State::init(const array_fp& mw) {
|
||||||
m_kk = mw.size();
|
m_kk = mw.size();
|
||||||
|
|
|
||||||
|
|
@ -750,7 +750,7 @@ namespace Cantera {
|
||||||
doublereal ThermoPhase::err(std::string msg) const {
|
doublereal ThermoPhase::err(std::string msg) const {
|
||||||
throw CanteraError("ThermoPhase","Base class method "
|
throw CanteraError("ThermoPhase","Base class method "
|
||||||
+msg+" called. Equation of state type: "+int2str(eosType()));
|
+msg+" called. Equation of state type: "+int2str(eosType()));
|
||||||
return 0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue