From 37be501a68c3ddd00c7996fcb09217168ff1a536 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Sun, 18 Jun 2017 17:13:34 -0400 Subject: [PATCH] [Test] Modify DebyeHuckel test to utilize PDSS_Water class --- test/thermo/phaseConstructors.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/thermo/phaseConstructors.cpp b/test/thermo/phaseConstructors.cpp index 974763438..96b999484 100644 --- a/test/thermo/phaseConstructors.cpp +++ b/test/thermo/phaseConstructors.cpp @@ -2,6 +2,7 @@ #include "cantera/thermo/ThermoFactory.h" #include "cantera/thermo/PDSSFactory.h" #include "cantera/thermo/PDSS_ConstVol.h" +#include "cantera/thermo/PDSS_Water.h" #include "cantera/thermo/FixedChemPotSSTP.h" #include "cantera/thermo/PureFluidPhase.h" #include "cantera/thermo/WaterSSTP.h" @@ -359,8 +360,10 @@ TEST(DebyeHuckel, fromScratch) for (auto& s : {sH2O, sNa, sCl, sH, sOH, sNaCl}) { p.addSpecies(s); } - size_t k = 0; - for (double v : {0.0555555, 0.0, 1.3, 1.3, 1.3, 1.3}) { + std::unique_ptr ss(new PDSS_Water()); + p.installPDSS(0, std::move(ss)); + size_t k = 1; + for (double v : {0.0, 1.3, 1.3, 1.3, 1.3}) { std::unique_ptr ss(new PDSS_ConstVol()); ss->setMolarVolume(v); p.installPDSS(k++, std::move(ss));