From 182bd8a5c558dc8a06c9c337684ec0a4299e834c Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 4 Apr 2013 06:00:13 +0000 Subject: [PATCH] End of __repr__ implementation for fielddouble and fieldtemplate --- src/MEDCoupling/MEDCouplingFieldDouble.cxx | 23 ++++++++++++++++++++ src/MEDCoupling/MEDCouplingFieldTemplate.cxx | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) 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) { } -- 2.39.2