From: ageay Date: Mon, 2 Apr 2012 10:39:45 +0000 (+0000) Subject: Error message not valid. X-Git-Tag: V6_main_FINAL~694 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1307eafa52febd6bdb0747e572575697c43db5b5;p=tools%2Fmedcoupling.git Error message not valid. --- diff --git a/src/MEDLoader/MEDFileField.cxx b/src/MEDLoader/MEDFileField.cxx index 2fd76428a..7c05cabfb 100644 --- a/src/MEDLoader/MEDFileField.cxx +++ b/src/MEDLoader/MEDFileField.cxx @@ -1529,7 +1529,14 @@ MEDCouplingFieldDouble *MEDFileFieldPerMesh::finishField3(const MEDFieldFieldGlo return ret; } else - throw INTERP_KERNEL::Exception("MEDFileFieldPerMesh::finishField3 : not implemented yet !"); + { + std::ostringstream oss; oss << "MEDFileFieldPerMesh::finishField3 : The field on nodes lies on a node profile so that it is impossible to find a submesh having exactly the same nodes of that profile !!!"; + oss << "So it is impossible to return a well definied MEDCouplingFieldDouble instance on specified mesh on a specified meshDim !" << std::endl; + oss << "To retrieve correctly such a field you have 2 possibilities :" << std::endl; + oss << " - use an another meshDim compatible with the field on nodes (MED file does not have such information)" << std::endl; + oss << " - if definitely the node profile has no link with mesh connectivity use MEDFileField1TS::getFieldWithProfile or MEDFileFieldMultiTS::getFieldWithProfile methods instead !"; + throw INTERP_KERNEL::Exception(oss.str().c_str()); + } return 0; }