Skip to content

Commit

Permalink
Replace thermo_t by ThermoPhase in ReactorBase
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Aug 15, 2019
1 parent 1b9629e commit f848b5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions include/cantera/zeroD/ReactorBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class ReactorBase
//! Specify the mixture contained in the reactor. Note that a pointer to
//! this substance is stored, and as the integration proceeds, the state of
//! the substance is modified.
virtual void setThermoMgr(thermo_t& thermo);
virtual void setThermoMgr(ThermoPhase& thermo);

//! Specify chemical kinetics governing the reactor.
virtual void setKineticsMgr(Kinetics& kin) {
Expand Down Expand Up @@ -185,15 +185,15 @@ class ReactorBase
virtual void syncState();

//! return a reference to the contents.
thermo_t& contents() {
ThermoPhase& contents() {
if (!m_thermo) {
throw CanteraError("ReactorBase::contents",
"Reactor contents not defined.");
}
return *m_thermo;
}

const thermo_t& contents() const {
const ThermoPhase& contents() const {
if (!m_thermo) {
throw CanteraError("ReactorBase::contents",
"Reactor contents not defined.");
Expand Down Expand Up @@ -269,7 +269,7 @@ class ReactorBase
//! Number of homogeneous species in the mixture
size_t m_nsp;

thermo_t* m_thermo;
ThermoPhase* m_thermo;

//! Pointer to the homogeneous Kinetics object that handles the reactions
Kinetics* m_kin;
Expand Down
2 changes: 1 addition & 1 deletion src/zeroD/ReactorBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ReactorBase::ReactorBase(const string& name) :
m_name = name;
}

void ReactorBase::setThermoMgr(thermo_t& thermo)
void ReactorBase::setThermoMgr(ThermoPhase& thermo)
{
m_thermo = &thermo;
m_nsp = m_thermo->nSpecies();
Expand Down

0 comments on commit f848b5d

Please sign in to comment.