Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
4c108660
Commit
4c108660
authored
Jul 15, 2013
by
Thomas Jahns
🤸
Browse files
Simplify initialization.
parent
6fb6e054
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pio_interface.c
View file @
4c108660
...
...
@@ -89,13 +89,14 @@ mapProblems(int problemSizes[], int * problemMapping, int nProblems,
for
(
j
=
0
;
j
<
nWriter
;
j
++
)
meanBucket
[
j
]
=
(
double
)
sum
*
(
*
(
w
+
j
));
memset
(
buckets
,
0
,
sizeof
(
buckets
));
for
(
i
=
0
;
i
<
nProblems
;
i
++
)
{
currCapacity
=
INT_MIN
;
for
(
j
=
0
;
j
<
nWriter
;
j
++
)
{
if
(
!
i
)
buckets
[
j
]
=
0
.
0
;
nextCapacity
=
meanBucket
[
j
]
-
(
buckets
[
j
]
+
(
*
ip
[
i
]
));
if
(
nextCapacity
>
currCapacity
)
...
...
Write
Preview
Supports
Markdown
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