[VCS Equil] Eliminate unnecessary calls to reportParams

This commit is contained in:
Ray Speth 2013-06-24 15:21:51 +00:00
parent 9b31092e90
commit 123544e4f7

View file

@ -1145,12 +1145,12 @@ int vcs_Cantera_to_vprob(Cantera::MultiPhase* mphase,
*/
SpeciesThermo& sp = tPhase->speciesThermo();
int spType;
double c[150];
double minTemp, maxTemp, refPressure;
sp.reportParams(k, spType, c, minTemp, maxTemp, refPressure);
int spType = sp.reportType(k);
if (spType == SIMPLE) {
double c[4];
double minTemp, maxTemp, refPressure;
sp.reportParams(k, spType, c, minTemp, maxTemp, refPressure);
ts_ptr->SS0_Model = VCS_SS0_CONSTANT;
ts_ptr->SS0_T0 = c[0];
ts_ptr->SS0_H0 = c[1];