Commit 4c108660 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Simplify initialization.

parent 6fb6e054
......@@ -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 )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment