From 0a21d299a95175db4b019989eebd37626e93f7c7 Mon Sep 17 00:00:00 2001 From: ageay Date: Tue, 18 Sep 2012 14:20:23 +0000 Subject: [PATCH] Increase precision in output --- src/MEDCoupling/MEDCouplingMemArray.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MEDCoupling/MEDCouplingMemArray.cxx b/src/MEDCoupling/MEDCouplingMemArray.cxx index 2dabb36d3..7733668a1 100644 --- a/src/MEDCoupling/MEDCouplingMemArray.cxx +++ b/src/MEDCoupling/MEDCouplingMemArray.cxx @@ -686,7 +686,7 @@ std::string DataArrayDouble::reprZip() const void DataArrayDouble::writeVTK(std::ostream& ofs, int indent, const char *nameInFile) const throw(INTERP_KERNEL::Exception) { std::string idt(indent,' '); - ofs.precision(15); + ofs.precision(17); ofs << idt << "\n" << idt; std::copy(begin(),end(),std::ostream_iterator(ofs," ")); @@ -708,14 +708,14 @@ void DataArrayDouble::reprZipStream(std::ostream& stream) const void DataArrayDouble::reprWithoutNameStream(std::ostream& stream) const { DataArray::reprWithoutNameStream(stream); - stream.precision(15); + stream.precision(17); _mem.repr(getNumberOfComponents(),stream); } void DataArrayDouble::reprZipWithoutNameStream(std::ostream& stream) const { DataArray::reprWithoutNameStream(stream); - stream.precision(15); + stream.precision(17); _mem.reprZip(getNumberOfComponents(),stream); } @@ -3299,7 +3299,7 @@ DataArrayDoubleTuple::DataArrayDoubleTuple(double *pt, int nbOfComp):_pt(pt),_nb std::string DataArrayDoubleTuple::repr() const { - std::ostringstream oss; oss.precision(15); oss << "("; + std::ostringstream oss; oss.precision(17); oss << "("; for(int i=0;i<_nb_of_compo-1;i++) oss << _pt[i] << ", "; oss << _pt[_nb_of_compo-1] << ")"; -- 2.39.2