diff --git a/src/thermo/LatticePhase.cpp b/src/thermo/LatticePhase.cpp index 32fc40595..baeb4947a 100644 --- a/src/thermo/LatticePhase.cpp +++ b/src/thermo/LatticePhase.cpp @@ -267,7 +267,7 @@ void LatticePhase::initThermoXML(XML_Node& phaseNode, const std::string& id_) XML_Node* speciesDB = get_XML_NameID("speciesData", speciesList["datasrc"], &phaseNode.root()); for (size_t k = 0; k < m_kk; k++) { - m_speciesMolarVolume[k] = m_site_density; + m_speciesMolarVolume[k] = 1.0 / m_site_density; XML_Node* s = speciesDB->findByAttr("name", speciesName(k)); if (!s) { throw CanteraError(" LatticePhase::initThermoXML", "database problems"); diff --git a/test_problems/VCSnonideal/LatticeSolid_LiSi/output_blessed.txt b/test_problems/VCSnonideal/LatticeSolid_LiSi/output_blessed.txt index f284199d5..be8da8781 100644 --- a/test_problems/VCSnonideal/LatticeSolid_LiSi/output_blessed.txt +++ b/test_problems/VCSnonideal/LatticeSolid_LiSi/output_blessed.txt @@ -145,7 +145,7 @@ VCS CALCULATION METHOD -------------------------------------------------------------------------------- Temperature = 6.3e+02 Kelvin Pressure = 1.0132e+05 Pa - total Volume = 5.5343 m**3 + total Volume = 0.35041 m**3 -------------------------------------------------------------------------------- diff --git a/test_problems/VCSnonideal/LatticeSolid_LiSi/verbose_blessed.txt b/test_problems/VCSnonideal/LatticeSolid_LiSi/verbose_blessed.txt index 547f895ac..3a80177e1 100644 --- a/test_problems/VCSnonideal/LatticeSolid_LiSi/verbose_blessed.txt +++ b/test_problems/VCSnonideal/LatticeSolid_LiSi/verbose_blessed.txt @@ -384,7 +384,7 @@ VCS CALCULATION METHOD -------------------------------------------------------------------------------- Temperature = 6.3e+02 Kelvin Pressure = 1.0132e+05 Pa - total Volume = 5.5343 m**3 + total Volume = 0.35041 m**3 --------------------------------------------------------------------------------