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
cb4a6f2c
Commit
cb4a6f2c
authored
Jun 27, 2015
by
incardon
Browse files
Fixing graph test
parent
33e579a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/GraphMLWriter_unit_tests.hpp
View file @
cb4a6f2c
...
...
@@ -51,6 +51,21 @@ struct ne_cp
//! total number of properties boost::fusion::vector
static
const
unsigned
int
max_prop
=
7
;
//! get x
float
&
get_x
()
{
return
boost
::
fusion
::
at_c
<
x
>
(
data
);}
//! get y
float
&
get_y
()
{
return
boost
::
fusion
::
at_c
<
y
>
(
data
);}
//! get z
float
&
get_z
()
{
return
boost
::
fusion
::
at_c
<
z
>
(
data
);}
//! get double number
double
&
get_dn
()
{
return
boost
::
fusion
::
at_c
<
double_num
>
(
data
);}
//! get long number
long
int
&
get_ln
()
{
return
boost
::
fusion
::
at_c
<
long_num
>
(
data
);}
//! get integer
int
&
get_i
()
{
return
boost
::
fusion
::
at_c
<
integer
>
(
data
);}
//! get string
std
::
string
&
get_str
()
{
return
boost
::
fusion
::
at_c
<
string
>
(
data
);}
//! define attributes names
struct
attributes
{
...
...
@@ -71,6 +86,13 @@ BOOST_AUTO_TEST_CASE( graphml_writer_use)
// Add 4 vertex and connect
struct
ne_cp
n1
;
n1
.
get_x
()
=
0
;
n1
.
get_y
()
=
0
;
n1
.
get_z
()
=
0
;
n1
.
get_dn
()
=
0
;
n1
.
get_ln
()
=
0
;
n1
.
get_i
()
=
0
;
n1
.
get_str
()
=
std
::
string
(
"test"
);
g_csr2
.
addVertex
(
n1
);
g_csr2
.
addVertex
(
n1
);
g_csr2
.
addVertex
(
n1
);
...
...
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