Public Member Functions
parallel_ode::GreedyBatchStrategy Class Reference

#include <parallel_batch.h>

Inheritance diagram for parallel_ode::GreedyBatchStrategy:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual int batch (const int *pairList, const int numPairs, const int numBodies, BatchVector &bodyRepetitionCount0, BatchVector &bodyRepetitionCount1, BatchVector &maxBodyRepetitionCountInBatch, BatchVector &constraintIndices, BatchVector &batchIndices, BatchVector &batchSizes)
 Greedily assigns constraints to batches. If the maximum number of batches is reached and all constraints have not been assigned, the process resets the "used body" indicator and continues assignment.
 GreedyBatchStrategy (int maxBatches=ParallelOptions::MAXBATCHES)
 Constructs on instance of the greedy strategy.

Detailed Description

Greedily assigns constraints to batches if a given constraint has not used a body involved in the constraint.

Definition at line 130 of file parallel_batch.h.


Constructor & Destructor Documentation

Constructs on instance of the greedy strategy.

Parameters:
maxBatchesThe maximum number of batches

Definition at line 140 of file parallel_batch.h.


Member Function Documentation

int parallel_ode::GreedyBatchStrategy::batch ( const int *  pairList,
const int  numPairs,
const int  numBodies,
BatchVector bodyRepetitionCount0,
BatchVector bodyRepetitionCount1,
BatchVector maxBodyRepetitionCountInBatch,
BatchVector constraintIndices,
BatchVector batchIndices,
BatchVector batchSizes 
) [virtual]

Greedily assigns constraints to batches. If the maximum number of batches is reached and all constraints have not been assigned, the process resets the "used body" indicator and continues assignment.

Reimplemented from parallel_ode::BatchStrategy.

Definition at line 105 of file parallel_batch.cpp.


The documentation for this class was generated from the following files:


parallel_quickstep
Author(s): Jared Duke
autogenerated on Wed Apr 23 2014 10:23:51