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_vcluster
Commits
11b7dc34
Commit
11b7dc34
authored
Jul 14, 2016
by
Pietro Incardona
Browse files
Adding additional check
parent
b648cdb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/VCluster_semantic_unit_tests.hpp
View file @
11b7dc34
...
...
@@ -329,6 +329,32 @@ BOOST_AUTO_TEST_CASE (Vcluster_semantic_struct_sendrecv)
BOOST_REQUIRE_EQUAL
(
match
,
true
);
}
// Send and receive 0 and check
{
Vcluster
&
vcl
=
create_vcluster
();
openfpm
::
vector
<
size_t
>
prc_recv2
;
openfpm
::
vector
<
size_t
>
prc_send
;
openfpm
::
vector
<
size_t
>
sz_recv2
;
openfpm
::
vector
<
openfpm
::
vector
<
Box
<
3
,
size_t
>>>
v1
;
openfpm
::
vector
<
Box
<
3
,
size_t
>>
v2
;
v1
.
resize
(
vcl
.
getProcessingUnits
());
for
(
size_t
i
=
0
;
i
<
v1
.
size
()
;
i
++
)
{
prc_send
.
add
((
i
+
vcl
.
getProcessUnitID
())
%
vcl
.
getProcessingUnits
());
}
vcl
.
SSendRecv
(
v1
,
v2
,
prc_send
,
prc_recv2
,
sz_recv2
);
BOOST_REQUIRE_EQUAL
(
v2
.
size
(),
0ul
);
BOOST_REQUIRE_EQUAL
(
prc_recv2
.
size
(),
0ul
);
BOOST_REQUIRE_EQUAL
(
sz_recv2
.
size
(),
0ul
);
}
}
BOOST_AUTO_TEST_SUITE_END
()
...
...
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