Skip to content
Snippets Groups Projects
Commit 417ea603 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

ReadWriteINT: increase output precision from 12 to 16 digits

parent f55b857b
No related branches found
No related tags found
1 merge request!2533Revert "persistence tests: relax accuracy requirement in view of other architectures"; increase accuracy of .int reference data to 16 digits (#952)
...@@ -27,7 +27,7 @@ void writeBlock(const std::vector<double>& values, std::ostream& output_stream, ...@@ -27,7 +27,7 @@ void writeBlock(const std::vector<double>& values, std::ostream& output_stream,
size_t ncols) size_t ncols)
{ {
output_stream.imbue(std::locale::classic()); output_stream.imbue(std::locale::classic());
output_stream << std::scientific << std::setprecision(12); output_stream << std::scientific << std::setprecision(16);
ASSERT(values.size() == nrows * ncols); ASSERT(values.size() == nrows * ncols);
for (size_t col = 0; col < ncols; ++col) { for (size_t col = 0; col < ncols; ++col) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment