From: eap Date: Fri, 16 Sep 2011 07:36:21 +0000 (+0000) Subject: 0021314: [CEA 490] Driver GIBI with medloader / medcoupling X-Git-Tag: V6_main_FINAL~957 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a44ca8d656b130b70c369105cde0240bdf2b0de1;p=tools%2Fmedcoupling.git 0021314: [CEA 490] Driver GIBI with medloader / medcoupling fix dump of a Cell --- diff --git a/src/MEDLoader/SauvMedConvertor.cxx b/src/MEDLoader/SauvMedConvertor.cxx index d19ec9d45..be6b3ec1c 100644 --- a/src/MEDLoader/SauvMedConvertor.cxx +++ b/src/MEDLoader/SauvMedConvertor.cxx @@ -366,9 +366,9 @@ bool Cell::operator< (const Cell& ma) const std::ostream& SauvUtilities::operator<< (std::ostream& os, const SauvUtilities::Cell& ma) { - os << "cell " << ma._number << " (" << ma._nodes.size() << " nodes) : < " << ma._nodes[0]; + os << "cell " << ma._number << " (" << ma._nodes.size() << " nodes) : < " << ma._nodes[0]->_number; for( size_t i=1; i!=ma._nodes.size(); ++i) - os << ", " << ma._nodes[0]; + os << ", " << ma._nodes[i]->_number; #ifdef _DEBUG_ os << " > sortedNodes: "; if ( ma._sortedNodeIDs ) { @@ -776,7 +776,7 @@ double ASCIIReader::getDouble() const if ( _curPos[posE] != 'E' && _curPos[posE] != 'e' ) { std::string aStr (_curPos); - if ( aStr.size() < posE ) + if ( aStr.size() < posE+1 ) THROW_IK_EXCEPTION("No more doubles (line #" << lineNb() << ")"); aStr.insert( posE, "E", 1 ); return atof(aStr.c_str());