From 99dcdddd3c824fa53de1bfaba42e8681424c2522 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Wed, 21 Mar 2007 00:44:14 +0000 Subject: [PATCH] Solaris 10 port - 64 bit changed getline(s, rest) form to getline(s, rest, '\n'). This is probably an internal solaris stl bug. --- Cantera/src/converters/ck2ct.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Cantera/src/converters/ck2ct.cpp b/Cantera/src/converters/ck2ct.cpp index 14e263fff..12a89517b 100644 --- a/Cantera/src/converters/ck2ct.cpp +++ b/Cantera/src/converters/ck2ct.cpp @@ -65,8 +65,12 @@ namespace pip { #ifdef HAS_SSTREAM /* * Read a line from the file + * + * SOLARIS 10 NOTES: Optimized version of solaris seg faults + * without the '\n' argument for some reason, probably + * an internal solaris stl bug. */ - getline(s, rest); + getline(s, rest,'\n'); /* * In the transport database, we allow comment lines that * consist of '#' and '!' as the first character in the @@ -101,7 +105,7 @@ namespace pip { >> t.dipole >> t.polar >> t.rot; // get the rest of the line, in case there are comments - getline(s, rest); + getline(s, rest, '\n'); if (nm != "") { _trmap[nm] = t; // t.name] = t; }