used popError() on two cases where errors are caught and delt with.

This commit is contained in:
Harry Moffat 2006-05-27 23:34:09 +00:00
parent 1023b2bbcb
commit c3d097140d

View file

@ -74,10 +74,10 @@ namespace Cantera {
SpeciesThermo* SpeciesThermoFactory::newSpeciesThermo(XML_Node* node) {
int inasa = 0, ishomate = 0, isimple = 0, iother = 0;
try {
getSpeciesThermoTypes(node, inasa, ishomate, isimple, iother);
}
catch (UnknownSpeciesThermoModel) {
iother = 1;
getSpeciesThermoTypes(node, inasa, ishomate, isimple, iother);
} catch (UnknownSpeciesThermoModel) {
iother = 1;
popError();
}
if (iother) {
writelog("returning new GeneralSpeciesThermo");
@ -96,10 +96,10 @@ namespace Cantera {
getSpeciesThermoTypes(nodes[j], inasa, ishomate, isimple, iother);
} catch (UnknownSpeciesThermoModel) {
iother = 1;
popError();
}
}
if (iother) {
writelog("returning new GeneralSpeciesThermo");
return new GeneralSpeciesThermo();
}
return newSpeciesThermo(NASA*inasa
@ -123,7 +123,6 @@ namespace Cantera {
}
}
if (iother) {
writelog("returning new GeneralSpeciesThermo");
return new GeneralSpeciesThermo();
}
return newSpeciesThermo(NASA*inasa