Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
417ea603
Commit
417ea603
authored
10 months ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
ReadWriteINT: increase output precision from 12 to 16 digits
parent
f55b857b
No related branches found
No related tags found
1 merge request
!2533
Revert "persistence tests: relax accuracy requirement in view of other architectures"; increase accuracy of .int reference data to 16 digits (#952)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Device/IO/ReadWriteINT.cpp
+1
-1
1 addition, 1 deletion
Device/IO/ReadWriteINT.cpp
with
1 addition
and
1 deletion
Device/IO/ReadWriteINT.cpp
+
1
−
1
View file @
417ea603
...
@@ -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
(
1
2
);
output_stream
<<
std
::
scientific
<<
std
::
setprecision
(
1
6
);
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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment