Skip to content

Commit

Permalink
[Thermo] Triage incorrect method overrides in LatticeSolidPhase
Browse files Browse the repository at this point in the history
See #1310
  • Loading branch information
speth committed Aug 15, 2023
1 parent e03558a commit 9a549f8
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions include/cantera/thermo/LatticeSolidPhase.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,20 +284,13 @@ class LatticeSolidPhase : public ThermoPhase
*
* @param x On return, x contains the mole fractions. Must have a length
* greater than or equal to the number of species.
*
* @todo This method shadows but does not override Phase::getMoleFractions(). The
* LatticeSolidPhase class should be revised to avoid needing to override the
* methods for getting composition. See
* https://github.com/Cantera/cantera/issues/1310 for additional information.
*/
virtual void getMoleFractions(double* const x) const;

virtual double moleFraction(const int k) const {
throw NotImplementedError("LatticeSolidPhase::moleFraction");
}

virtual void getMassFractions(double* const y) const {
throw NotImplementedError("LatticeSolidPhase::getMassFractions");
}

virtual double massFraction(const int k) const {
throw NotImplementedError("LatticeSolidPhase::massFraction");
}
void getMoleFractions(double* const x) const;

virtual void setMassFractions(const double* const y) {
throw NotImplementedError("LatticeSolidPhase::setMassFractions");
Expand Down

0 comments on commit 9a549f8

Please sign in to comment.