Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make use of 'override' specifier #1589

Merged
merged 14 commits into from Aug 15, 2023
19 changes: 6 additions & 13 deletions include/cantera/thermo/LatticeSolidPhase.h
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");
}
ischoegl marked this conversation as resolved.
Show resolved Hide resolved
void getMoleFractions(double* const x) const;

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