[Base] rename Base.h/.cpp to SolutionBase.h/.cpp

This commit is contained in:
Ingmar Schoegl 2019-09-29 08:43:54 -05:00 committed by Ray Speth
parent af04f97d0e
commit 3bf09fbd7f
5 changed files with 23 additions and 8 deletions

View file

@ -1,10 +1,10 @@
//! @file Base.h
//! @file SolutionBase.h
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.
#ifndef CT_BASE_H
#define CT_BASE_H
#ifndef CT_SOLUTIONBASE_H
#define CT_SOLUTIONBASE_H
#include "cantera/base/ctexceptions.h"
@ -77,6 +77,21 @@ public:
//! Set the Transport object
void setTransport(shared_ptr<Transport> transport);
//! Accessor for the ThermoPhase object
shared_ptr<ThermoPhase> thermo() {
return m_thermo;
}
//! Accessor for the Kinetics object
shared_ptr<Kinetics> kinetics() {
return m_kinetics;
}
//! Accessor for the Transport object
shared_ptr<Transport> transport() {
return m_transport;
}
protected:
shared_ptr<ThermoPhase> m_thermo; //! ThermoPhase manager
shared_ptr<Kinetics> m_kinetics; //! Kinetics manager

View file

@ -6,7 +6,7 @@
*/
// This file is part of Cantera. See License.txt in the top-level directory or
// at http://www.cantera.org/license.txt for license and copyright information.
// at https://cantera.org/license.txt for license and copyright information.
#ifndef CT_THERMOPHASE_H
#define CT_THERMOPHASE_H

View file

@ -121,7 +121,7 @@ cdef extern from "cantera/thermo/Species.h" namespace "Cantera":
cdef vector[shared_ptr[CxxSpecies]] CxxGetSpecies "getSpecies" (CxxAnyValue&) except +translate_exception
cdef extern from "cantera/base/Base.h" namespace "Cantera":
cdef extern from "cantera/base/SolutionBase.h" namespace "Cantera":
cdef cppclass CxxSolutionBase "Cantera::SolutionBase":
CxxSolutionBase()
string type()

View file

@ -1,9 +1,9 @@
//! @file Base.cpp
//! @file SolutionBase.cpp
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.
#include "cantera/base/Base.h"
#include "cantera/base/SolutionBase.h"
#include "cantera/thermo/ThermoPhase.h"
#include "cantera/kinetics/Kinetics.h"
#include "cantera/transport/TransportBase.h"

View file

@ -4,7 +4,7 @@
*/
// This file is part of Cantera. See License.txt in the top-level directory or
// at http://www.cantera.org/license.txt for license and copyright information.
// at https://cantera.org/license.txt for license and copyright information.
#include "cantera/thermo/Phase.h"
#include "cantera/base/utilities.h"