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
6ba41e3e
Commit
6ba41e3e
authored
May 26, 2015
by
incardon
Browse files
Fixing test non power of 2 number of processors
parent
6cf4290e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/VCluster_unit_tests.hpp
View file @
6ba41e3e
...
...
@@ -401,7 +401,7 @@ BOOST_AUTO_TEST_CASE( VCluster_use_sendrecv)
// The pattern is not really random preallocate the receive buffer
for
(
size_t
i
=
0
;
i
<
8
&&
i
<
n_proc
;
i
++
)
{
long
int
p_id
=
(
-
(
i
+
1
)
*
ps
+
(
long
int
)
vcl
.
getProcessUnitID
())
%
n_proc
;
long
int
p_id
=
(
-
(
i
+
1
)
*
ps
+
(
long
int
)
vcl
.
getProcessUnitID
());
if
(
p_id
<
0
)
p_id
+=
n_proc
;
else
...
...
@@ -435,7 +435,7 @@ BOOST_AUTO_TEST_CASE( VCluster_use_sendrecv)
// Check the message
for
(
long
int
i
=
0
;
i
<
8
&&
i
<
n_proc
;
i
++
)
{
long
int
p_id
=
(
-
(
i
+
1
)
*
ps
+
(
long
int
)
vcl
.
getProcessUnitID
())
%
n_proc
;
long
int
p_id
=
(
-
(
i
+
1
)
*
ps
+
(
long
int
)
vcl
.
getProcessUnitID
());
if
(
p_id
<
0
)
p_id
+=
n_proc
;
else
...
...
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