Ignore:
Timestamp:
11/15/18 17:11:42 (2 years ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
d334782
Parents:
eac29c7
Message:

Clear stats data after every output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/tutorial/ipdist-parallel.c

    reac29c7 rf611921  
    650650                                tally->dst[i][j] = 0;
    651651                        }
     652                        /* Clear all the stats data */
     653                        tally->stats->mode_src[i] = 0;
     654                        tally->stats->mode_dst[i] = 0;
     655                        tally->stats->mean_src[i] = 0;
     656                        tally->stats->mean_dst[i] = 0;
     657                        tally->stats->median_src[i] = 0;
     658                        tally->stats->median_dst[i] = 0;
     659                        tally->stats->stddev_src[i] = 0;
     660                        tally->stats->stddev_dst[i] = 0;
     661                        tally->stats->variance_src[i] = 0;
     662                        tally->stats->variance_dst[i] = 0;
     663                        tally->stats->skewness_src[i] = 0;
     664                        tally->stats->skewness_dst[i] = 0;
    652665                }
    653666                /* free the priority queue */
Note: See TracChangeset for help on using the changeset viewer.