[Thermo] Deprecate class SemiconductorPhase
Can't be constructed from ThermoFactory, and constructor from file is not implemented. Also, the getChemPotentials method uses the m_work array, which is never initialized because the private method initLengths() is never called. See #267
This commit is contained in:
parent
f583bd4530
commit
111b4909c9
2 changed files with 9 additions and 2 deletions
|
|
@ -21,12 +21,16 @@ const int cHole = 1;
|
||||||
* @ingroup thermoprops
|
* @ingroup thermoprops
|
||||||
*
|
*
|
||||||
* Class SemiconductorPhase represents electrons and holes in a semiconductor.
|
* Class SemiconductorPhase represents electrons and holes in a semiconductor.
|
||||||
|
* @deprecated Broken and unused. To be removed after Cantera 2.3.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
class SemiconductorPhase : public ThermoPhase
|
class SemiconductorPhase : public ThermoPhase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SemiconductorPhase() {}
|
SemiconductorPhase() {
|
||||||
|
warn_deprecated("class SemiconductorPhase",
|
||||||
|
"To be removed after Cantera 2.3.");
|
||||||
|
}
|
||||||
SemiconductorPhase(std::string infile, std::string id="");
|
SemiconductorPhase(std::string infile, std::string id="");
|
||||||
|
|
||||||
SemiconductorPhase(const SemiconductorPhase& right) {
|
SemiconductorPhase(const SemiconductorPhase& right) {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,10 @@ static doublereal JoyceDixon(doublereal r)
|
||||||
}
|
}
|
||||||
|
|
||||||
SemiconductorPhase::SemiconductorPhase(std::string infile,
|
SemiconductorPhase::SemiconductorPhase(std::string infile,
|
||||||
std::string id_) {}
|
std::string id_) {
|
||||||
|
warn_deprecated("class SemiconductorPhase",
|
||||||
|
"To be removed after Cantera 2.3.");
|
||||||
|
}
|
||||||
|
|
||||||
void SemiconductorPhase::getChemPotentials(doublereal* mu) const
|
void SemiconductorPhase::getChemPotentials(doublereal* mu) const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue