Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Markus Holzer
waLBerla
Commits
16fc13db
Commit
16fc13db
authored
Apr 08, 2019
by
Michael Kuron
Browse files
Remove boost::tuple from VTKOutput
parent
85c2a7e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/vtk/VTKOutput.cpp
View file @
16fc13db
...
...
@@ -1377,13 +1377,13 @@ void VTKOutput::writeVTUHeaderPiece( std::ostream& ofs, const uint_t numberOfCel
{
Base64Writer
base64
;
for
(
auto
vertex
=
vc
.
begin
();
vertex
!=
vc
.
end
();
++
vertex
)
base64
<<
numeric_cast
<
float
>
(
(
*
vertex
)
.
get
<
0
>
()
)
<<
numeric_cast
<
float
>
(
(
*
vertex
)
.
get
<
1
>
()
)
<<
numeric_cast
<
float
>
(
(
*
vertex
)
.
get
<
2
>
()
);
base64
<<
numeric_cast
<
float
>
(
std
::
get
<
0
>
(
*
vertex
)
)
<<
numeric_cast
<
float
>
(
std
::
get
<
1
>
(
*
vertex
)
)
<<
numeric_cast
<
float
>
(
std
::
get
<
2
>
(
*
vertex
)
);
ofs
<<
" "
;
base64
.
toStream
(
ofs
);
}
else
for
(
auto
vertex
=
vc
.
begin
();
vertex
!=
vc
.
end
();
++
vertex
)
ofs
<<
" "
<<
numeric_cast
<
float
>
(
(
*
vertex
)
.
get
<
0
>
()
)
<<
" "
<<
numeric_cast
<
float
>
(
(
*
vertex
)
.
get
<
1
>
()
)
<<
" "
<<
numeric_cast
<
float
>
(
(
*
vertex
)
.
get
<
2
>
()
)
<<
"
\n
"
;
ofs
<<
" "
<<
numeric_cast
<
float
>
(
std
::
get
<
0
>
(
*
vertex
)
)
<<
" "
<<
numeric_cast
<
float
>
(
std
::
get
<
1
>
(
*
vertex
)
)
<<
" "
<<
numeric_cast
<
float
>
(
std
::
get
<
2
>
(
*
vertex
)
)
<<
"
\n
"
;
ofs
<<
" </DataArray>
\n
"
<<
" </Points>
\n
"
...
...
src/vtk/VTKOutput.h
View file @
16fc13db
...
...
@@ -35,7 +35,7 @@
#include
"core/Filesystem.h"
#include
<functional>
#include
<
boost/tuple/tuple.hpp
>
#include
<
tuple
>
#include
<fstream>
#include
<string>
...
...
@@ -55,16 +55,16 @@ private:
typedef
UID
<
VTKGEN
>
VTKUID
;
// types used during vertex-index mapping procedure when writing (P)VTU files
typedef
boo
st
::
tuple
<
cell_idx_t
,
cell_idx_t
,
cell_idx_t
>
Vertex
;
typedef
boo
st
::
tuple
<
real_t
,
real_t
,
real_t
>
VertexCoord
;
typedef
st
d
::
tuple
<
cell_idx_t
,
cell_idx_t
,
cell_idx_t
>
Vertex
;
typedef
st
d
::
tuple
<
real_t
,
real_t
,
real_t
>
VertexCoord
;
typedef
uint32_t
Index
;
struct
VertexCompare
{
bool
operator
()(
const
Vertex
&
lhs
,
const
Vertex
&
rhs
)
const
{
if
(
lhs
.
get
<
0
>
()
<
rhs
.
get
<
0
>
()
||
(
lhs
.
get
<
0
>
()
==
rhs
.
get
<
0
>
()
&&
lhs
.
get
<
1
>
()
<
rhs
.
get
<
1
>
()
)
||
(
lhs
.
get
<
0
>
()
==
rhs
.
get
<
0
>
()
&&
lhs
.
get
<
1
>
()
==
rhs
.
get
<
1
>
()
&&
lhs
.
get
<
2
>
()
<
rhs
.
get
<
2
>
()
)
)
if
(
std
::
get
<
0
>
(
lhs
)
<
std
::
get
<
0
>
(
rhs
)
||
(
std
::
get
<
0
>
(
lhs
)
==
std
::
get
<
0
>
(
rhs
)
&&
std
::
get
<
1
>
(
lhs
)
<
std
::
get
<
1
>
(
rhs
)
)
||
(
std
::
get
<
0
>
(
lhs
)
==
std
::
get
<
0
>
(
rhs
)
&&
std
::
get
<
1
>
(
lhs
)
==
std
::
get
<
1
>
(
rhs
)
&&
std
::
get
<
2
>
(
lhs
)
<
std
::
get
<
2
>
(
rhs
)
)
)
return
true
;
return
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment