Skip to content

Commit f848b5d

Browse files
committed
Replace thermo_t by ThermoPhase in ReactorBase
1 parent 1b9629e commit f848b5d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/cantera/zeroD/ReactorBase.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class ReactorBase
8989
//! Specify the mixture contained in the reactor. Note that a pointer to
9090
//! this substance is stored, and as the integration proceeds, the state of
9191
//! the substance is modified.
92-
virtual void setThermoMgr(thermo_t& thermo);
92+
virtual void setThermoMgr(ThermoPhase& thermo);
9393

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

187187
//! return a reference to the contents.
188-
thermo_t& contents() {
188+
ThermoPhase& contents() {
189189
if (!m_thermo) {
190190
throw CanteraError("ReactorBase::contents",
191191
"Reactor contents not defined.");
192192
}
193193
return *m_thermo;
194194
}
195195

196-
const thermo_t& contents() const {
196+
const ThermoPhase& contents() const {
197197
if (!m_thermo) {
198198
throw CanteraError("ReactorBase::contents",
199199
"Reactor contents not defined.");
@@ -269,7 +269,7 @@ class ReactorBase
269269
//! Number of homogeneous species in the mixture
270270
size_t m_nsp;
271271

272-
thermo_t* m_thermo;
272+
ThermoPhase* m_thermo;
273273

274274
//! Pointer to the homogeneous Kinetics object that handles the reactions
275275
Kinetics* m_kin;

src/zeroD/ReactorBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ReactorBase::ReactorBase(const string& name) :
2626
m_name = name;
2727
}
2828

29-
void ReactorBase::setThermoMgr(thermo_t& thermo)
29+
void ReactorBase::setThermoMgr(ThermoPhase& thermo)
3030
{
3131
m_thermo = &thermo;
3232
m_nsp = m_thermo->nSpecies();

0 commit comments

Comments
 (0)