From ff22d6e8e096f1327b37dfeaa176108727ec50ec Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 28 Jun 2012 13:57:32 +0000 Subject: [PATCH] Precision of output time in error message. --- src/MEDLoader/MEDFileField.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MEDLoader/MEDFileField.cxx b/src/MEDLoader/MEDFileField.cxx index 5340bb3e4..54f391f85 100644 --- a/src/MEDLoader/MEDFileField.cxx +++ b/src/MEDLoader/MEDFileField.cxx @@ -3820,7 +3820,8 @@ int MEDFileFieldMultiTSWithoutDAS::getPosOfTimeStep(int iteration, int order) co int MEDFileFieldMultiTSWithoutDAS::getPosGivenTime(double time, double eps) const throw(INTERP_KERNEL::Exception) { int ret=0; - std::ostringstream oss; oss << "MEDFileFieldMultiTSWithoutDAS::getPosGivenTime : No such time step " << time << "! \nPossibilities are : "; + std::ostringstream oss; oss << "MEDFileFieldMultiTSWithoutDAS::getPosGivenTime : No such time step " << time << "! \nPossibilities are : "; + oss.precision(15); for(std::vector< MEDCouplingAutoRefCountObjectPtr >::const_iterator it=_time_steps.begin();it!=_time_steps.end();it++,ret++) { const MEDFileField1TSWithoutDAS *tmp(*it); -- 2.39.2