Skip to content

Commit

Permalink
[Thermo] fix "reportParameters" functions
Browse files Browse the repository at this point in the history
These functions were making checks based on the old style of handling species
indexing which no longer applies.

Fixes #328
  • Loading branch information
speth committed Mar 28, 2016
1 parent 8a63dca commit 6af924d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
6 changes: 0 additions & 6 deletions src/thermo/NasaThermo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,18 +194,12 @@ void NasaThermo::reportParams(size_t index, int& type,
double ttemp;
lowPoly->reportParameters(n, itype, minTemp, ttemp, refPressure,
c + 1);
if (n != index) {
throw CanteraError("NasaThermo::reportParams", "Index mismatch");
}
if (itype != NASA1) {
throw CanteraError("NasaThermo::reportParams",
"Thermo type mismatch for low-T polynomial");
}
highPoly->reportParameters(n, itype, ttemp, maxTemp, refPressure,
c + 8);
if (n != index) {
throw CanteraError("NasaThermo::reportParams", "Index mismatch");
}
if (itype != NASA1) {
throw CanteraError("NasaThermo::reportParams",
"Thermo type mismatch for high-T polynomial");
Expand Down
8 changes: 0 additions & 8 deletions src/thermo/ShomateThermo.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,20 +312,12 @@ class ShomateThermo : public SpeciesThermo
double ttemp;
lowPoly->reportParameters(n, itype, minTemp, ttemp, refPressure,
c + 1);
if (n != index) {
throw CanteraError("ShomateThermo::reportParams",
"Index mismatch in low-T polynomial");
}
if (itype != SHOMATE && itype != SHOMATE1) {
throw CanteraError("ShomateThermo::reportParams",
"Thermo type mismatch in low-T polynomial");
}
highPoly->reportParameters(n, itype, ttemp, maxTemp,
refPressure, c + 8);
if (n != index) {
throw CanteraError("ShomateThermo::reportParams",
"Index mismatch in high-T polynomial");
}
if (itype != SHOMATE && itype != SHOMATE1) {
throw CanteraError("ShomateThermo::reportParams",
"Thermo type mismatch in high-T polynomial");
Expand Down

0 comments on commit 6af924d

Please sign in to comment.