Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_io
Commits
3ba9a838
Commit
3ba9a838
authored
Aug 19, 2017
by
incardon
Browse files
Fixing IO test error
parent
863d65e6
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/HDF5_wr/HDF5_writer_gd.hpp
View file @
3ba9a838
...
...
@@ -122,7 +122,10 @@ public:
for
(
int
i
=
0
;
i
<
mpi_rank
;
i
++
)
{
if
(
mpi_rank
==
0
)
{
/* coverity[dead_error_line] */
offset
[
0
]
=
0
;
}
else
offset
[
0
]
+=
sz_others
.
get
(
i
);
}
...
...
src/HDF5_wr/HDF5_writer_vd.hpp
View file @
3ba9a838
...
...
@@ -117,9 +117,12 @@ public:
for
(
int
i
=
0
;
i
<
mpi_rank
;
i
++
)
{
if
(
mpi_rank
==
0
)
{
/* coverity[dead_error_line] */
offset
[
0
]
=
0
;
}
else
offset
[
0
]
+=
sz_others
.
get
(
i
);
{
offset
[
0
]
+=
sz_others
.
get
(
i
);
}
}
int
metadata
[
mpi_size
];
...
...
src/VTKWriter/VTKWriter_grids_util.hpp
View file @
3ba9a838
...
...
@@ -453,6 +453,8 @@ template<unsigned int dims,typename T> inline void output_point(Point<dims,T> &
for
(
;
i
<
3
;
i
++
)
{
// we use float so we have to convert to float
/* coverity[dead_error_begin] */
auto
tmp
=
0.0
;
tmp
=
swap_endian_lt
(
tmp
);
v_out
.
write
((
const
char
*
)
&
tmp
,
sizeof
(
tmp
));
...
...
src/VTKWriter/VTKWriter_unit_tests.hpp
View file @
3ba9a838
...
...
@@ -1165,7 +1165,6 @@ BOOST_AUTO_TEST_CASE( vtk_writer_use_point_set_binary )
v3ps
.
template
get
<
0
>(
i
)[
0
]
=
rng
.
GetUniform
()
*
0.3
;
v3ps
.
template
get
<
0
>(
i
)[
1
]
=
rng
.
GetUniform
()
*
0.3
;
v3ps
.
template
get
<
0
>(
i
)[
2
]
=
rng
.
GetUniform
()
*
0.3
;
v1pp
.
template
get
<
0
>(
i
)
=
rng
.
GetUniform
();
v1pp
.
template
get
<
1
>(
i
)[
0
][
0
]
=
rng
.
GetUniform
();
...
...
test_data/vtk_points_2d_bin_test.vtk
View file @
3ba9a838
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment