Fix pointer logic errors in initThermoXML
Affects DebyeHuckel and HMWSoln
This commit is contained in:
parent
c0772d236a
commit
6d4540435e
2 changed files with 2 additions and 2 deletions
|
|
@ -1037,7 +1037,7 @@ void DebyeHuckel::initThermoXML(XML_Node& phaseNode, const std::string& id_)
|
|||
for (size_t k = 0; k < m_kk; k++) {
|
||||
std::string kname = speciesName(k);
|
||||
const XML_Node* spPtr = xspecies[k];
|
||||
if (!spPtr) {
|
||||
if (spPtr) {
|
||||
if (spPtr->hasChild("electrolyteSpeciesType")) {
|
||||
std::string est = getChildValue(*spPtr, "electrolyteSpeciesType");
|
||||
if ((m_electrolyteSpeciesType[k] = interp_est(est)) == -1) {
|
||||
|
|
|
|||
|
|
@ -1533,7 +1533,7 @@ void HMWSoln::initThermoXML(XML_Node& phaseNode, const std::string& id_)
|
|||
std::vector<const XML_Node*> xspecies = speciesData();
|
||||
for (size_t k = 0; k < m_kk; k++) {
|
||||
const XML_Node* spPtr = xspecies[k];
|
||||
if (!spPtr) {
|
||||
if (spPtr) {
|
||||
if (spPtr->hasChild("electrolyteSpeciesType")) {
|
||||
string est = getChildValue(*spPtr, "electrolyteSpeciesType");
|
||||
if ((m_electrolyteSpeciesType[k] = interp_est(est)) == -1) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue