$search

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

parallel_ode::GreedyBatchStrategy::GreedyBatchStrategy ( int  maxBatches = ParallelOptions::MAXBATCHES  )  [inline]

Constructs on instance of the greedy strategy.

Parameters:
maxBatches The 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


parallel_quickstep
Author(s): Jared Duke
autogenerated on Fri Mar 1 16:28:18 2013