Skip to content

Commit

Permalink
[Thermo] Deprecate "potential energy" property of IdealSolidSolnPhase
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Jan 11, 2020
1 parent 9ac5da2 commit 4eb375e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/cantera/thermo/IdealSolidSolnPhase.h
Original file line number Diff line number Diff line change
Expand Up @@ -571,12 +571,18 @@ class IdealSolidSolnPhase : public ThermoPhase
return m_cp0_R;
}

//! @deprecated To be removed after Cantera 2.5
virtual void setPotentialEnergy(int k, doublereal pe) {
warn_deprecated("IdealSolidSolnPhase::setPotentialEnergy",
"To be removed after Cantera 2.5");
m_pe[k] = pe;
_updateThermo();
}

//! @deprecated To be removed after Cantera 2.5
virtual doublereal potentialEnergy(int k) const {
warn_deprecated("IdealSolidSolnPhase::potentialEnergy",
"To be removed after Cantera 2.5");
return m_pe[k];
}

Expand Down Expand Up @@ -677,6 +683,7 @@ class IdealSolidSolnPhase : public ThermoPhase
mutable vector_fp m_expg0_RT;

//! Vector of potential energies for the species.
//! @deprecated To be removed after Cantera 2.5
mutable vector_fp m_pe;

//! Temporary array used in equilibrium calculations
Expand Down

0 comments on commit 4eb375e

Please sign in to comment.