Commit 3ba9a838 authored by incardon's avatar incardon

Fixing IO test error

parent 863d65e6
......@@ -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);
}
......
......@@ -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];
......
......@@ -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));
......
......@@ -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();
......
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