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
aa3154bb
Commit
aa3154bb
authored
May 19, 2021
by
i-bird
Browse files
Fixing IO for grids
parent
306ac1e6
Pipeline
#3059
failed with stages
in 14 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/VTKWriter/VTKWriter_grids_util.hpp
View file @
aa3154bb
...
...
@@ -930,7 +930,7 @@ template<unsigned int dims,typename T> inline void output_point(Point<dims,T> &
{
// we use float so we have to convert to float
auto
tmp
=
p
.
get
(
i
);
//
tmp = swap_endian_lt(tmp);
tmp
=
swap_endian_lt
(
tmp
);
v_out
.
write
((
const
char
*
)
&
tmp
,
sizeof
(
tmp
));
}
for
(
;
i
<
3
;
i
++
)
...
...
@@ -939,7 +939,7 @@ template<unsigned int dims,typename T> inline void output_point(Point<dims,T> &
/* coverity[dead_error_begin] */
T
tmp
=
0.0
;
//
tmp = swap_endian_lt(tmp);
tmp
=
swap_endian_lt
(
tmp
);
v_out
.
write
((
const
char
*
)
&
tmp
,
sizeof
(
tmp
));
}
}
...
...
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