From a44ca8d656b130b70c369105cde0240bdf2b0de1 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 16 Sep 2011 07:36:21 +0000 Subject: [PATCH] 0021314: [CEA 490] Driver GIBI with medloader / medcoupling fix dump of a Cell --- src/MEDLoader/SauvMedConvertor.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()); -- 2.39.2