Commit ef76d17f authored by Kenneth Leiter's avatar Kenneth Leiter

BUG: Fix precision of values when written to XML.

Precision of values now tied to value type in getValuesString()
This precision is maintained when output to XML.
parent c5929b52
......@@ -22,6 +22,7 @@
/*****************************************************************************/
#include <boost/tokenizer.hpp>
#include <limits>
#include <sstream>
#include <utility>
#include "XdmfArray.hpp"
......@@ -278,6 +279,7 @@ public:
}
std::stringstream toReturn;
toReturn.precision(std::numeric_limits<U>::digits10 + 2);
for(int i=0; i<lastIndex; ++i) {
toReturn << (U)array[i] << " ";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment