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
argupta
openfpm_io
Commits
cf184ff5
Commit
cf184ff5
authored
May 25, 2018
by
Pietro Incardona
Browse files
Adding print ghost option
parent
b1d0d9e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/VTKWriter/VTKWriter.hpp
View file @
cf184ff5
...
...
@@ -103,6 +103,7 @@ enum file_type
#define VTK_WRITER 0x10000
#define FORMAT_ASCII 0x0
#define FORMAT_BINARY 0x10000000
#define PRINT_GHOST 1
template
<
typename
Object
,
unsigned
int
imp
>
class
VTKWriter
...
...
src/VTKWriter/VTKWriter_graph.hpp
View file @
cf184ff5
...
...
@@ -65,14 +65,13 @@ struct vtk_vertex_node_array_scalar_selector<true>
static
inline
void
move
(
typename
G
::
V_container
&
vo
,
s_type
(
&
x
)[
3
],
bool
&
z_set
)
{
if
(
G
::
V_type
::
attributes
::
name
[
T
::
value
]
!=
"x"
)
return
;
{
return
;
}
if
(
std
::
extent
<
ele_v
>::
value
==
3
)
z_set
=
true
;
{
z_set
=
true
;
}
for
(
size_t
i
=
0
;
i
<
std
::
extent
<
ele_v
>::
value
;
i
++
)
x
[
i
]
=
convert
<
typename
boost
::
remove_reference
<
decltype
(
vo
.
template
get
<
T
::
value
>()[
i
])
>::
type
>::
template
to
<
s_type
>(
vo
.
template
get
<
T
::
value
>()[
i
]);
{
x
[
i
]
=
convert
<
typename
boost
::
remove_reference
<
decltype
(
vo
.
template
get
<
T
::
value
>()[
i
])
>::
type
>::
template
to
<
s_type
>(
vo
.
template
get
<
T
::
value
>()[
i
]);}
}
};
...
...
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