From: ageay Date: Wed, 3 Jul 2013 12:25:17 +0000 (+0000) Subject: debug for MEDFile killers X-Git-Tag: B4CMakeModifs~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f4ae18f1bfddc8b74914fdc22775b7f44b4349ef;p=modules%2Fmed.git debug for MEDFile killers --- diff --git a/src/MEDLoader/MEDFileField.cxx b/src/MEDLoader/MEDFileField.cxx index 52b6b0657..e186f667d 100644 --- a/src/MEDLoader/MEDFileField.cxx +++ b/src/MEDLoader/MEDFileField.cxx @@ -1048,7 +1048,7 @@ std::vector MEDFileFieldPerMeshPerType::addNewEntryIfNecessary(const MEDCou _field_pm_pt_pd.resize(sz+1); _field_pm_pt_pd[sz]=MEDFileFieldPerMeshPerTypePerDisc::New(this,type,locIdToFind); } - std::vector ret(1,0); + std::vector ret(1,(int)sz); return ret; } else @@ -3579,8 +3579,8 @@ void MEDFileAnyTypeField1TSWithoutSDA::simpleRepr(int bkOffset, std::ostream& os std::string startOfLine(bkOffset,' '); oss << startOfLine << "Field "; if(bkOffset==0) - oss << "[Type=" << getTypeStr() << "] "; - oss << "on One time Step "; + oss << "[Type=" << getTypeStr() << "] with name \"" << getName() << "\" "; + oss << "on one time Step "; if(f1tsId>=0) oss << "(" << f1tsId << ") "; oss << "on iteration=" << _iteration << " order=" << _order << "." << std::endl; @@ -3591,7 +3591,6 @@ void MEDFileAnyTypeField1TSWithoutSDA::simpleRepr(int bkOffset, std::ostream& os const std::vector &comps=arr->getInfoOnComponents(); if(f1tsId<0) { - oss << startOfLine << "Field Name : \"" << arr->getName() << "\"." << std::endl; oss << startOfLine << "Field has " << comps.size() << " components with the following infos :" << std::endl; for(std::vector::const_iterator it=comps.begin();it!=comps.end();it++) oss << startOfLine << " - \"" << (*it) << "\"" << std::endl;