From ed29f66c8cb3a4ad55c6c93e253472e1aad54b78 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Tue, 20 Mar 2007 21:56:36 +0000 Subject: [PATCH] Solaris 10 update Calling setState_TRY() in freezeSpecies() caused one of the test problems on solaris to fail. FreezeSpecies is called before the phase is actually set up (i.e., the size of the species is read from the input file). For constant density phases, then, this was causing a problem (divide by zero). setState() must be called after the phase is set up from the XML input file. --- Cantera/src/Phase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cantera/src/Phase.cpp b/Cantera/src/Phase.cpp index fc9f400cd..37b779bca 100755 --- a/Cantera/src/Phase.cpp +++ b/Cantera/src/Phase.cpp @@ -306,7 +306,7 @@ namespace Cantera { m_data[1] = 0.001; m_data[2] = 1.0; - setState_TRY(300.0, density(), &m_data[2]); + //setState_TRY(300.0, density(), &m_data[2]); m_kk = nSpecies(); }