From: ageay Date: Thu, 4 Apr 2013 06:00:13 +0000 (+0000) Subject: End of __repr__ implementation for fielddouble and fieldtemplate X-Git-Tag: V6_main_FINAL~213 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=182bd8a5c558dc8a06c9c337684ec0a4299e834c;p=tools%2Fmedcoupling.git End of __repr__ implementation for fielddouble and fieldtemplate --- diff --git a/src/MEDCoupling/MEDCouplingFieldDouble.cxx b/src/MEDCoupling/MEDCouplingFieldDouble.cxx index d8b115566..1a92c0bf4 100644 --- a/src/MEDCoupling/MEDCouplingFieldDouble.cxx +++ b/src/MEDCoupling/MEDCouplingFieldDouble.cxx @@ -1847,4 +1847,27 @@ void MEDCouplingFieldDouble::WriteVTK(const char *fileName, const std::vectorreprQuickOverview(stream); + stream << std::endl; + if(!_mesh) + stream << "No mesh support defined !"; + else + { + std::ostringstream oss; + _mesh->reprQuickOverview(oss); + std::string tmp(oss.str()); + stream << "Mesh info : " << tmp.substr(0,tmp.find('\n')); + } } diff --git a/src/MEDCoupling/MEDCouplingFieldTemplate.cxx b/src/MEDCoupling/MEDCouplingFieldTemplate.cxx index da3cd7a86..5a5a41c44 100644 --- a/src/MEDCoupling/MEDCouplingFieldTemplate.cxx +++ b/src/MEDCoupling/MEDCouplingFieldTemplate.cxx @@ -129,7 +129,7 @@ void MEDCouplingFieldTemplate::reprQuickOverview(std::ostream& stream) const thr try { nat=MEDCouplingNatureOfField::GetRepr(_nature); - stream << "Nature of field : " << nat << ".\n"; + stream << "Nature of field template : " << nat << ".\n"; } catch(INTERP_KERNEL::Exception& e) { }