changa  3.5
 All Classes Files Functions Variables Typedefs Enumerations Friends Macros Groups Pages
Public Member Functions | List of all members
MarkSmoothCompute Class Reference

Computation over "inverse" nearest neighbors. More...

#include <smooth.h>

Inheritance diagram for MarkSmoothCompute:
SmoothCompute Compute

Public Member Functions

 MarkSmoothCompute (TreePiece *_tp, SmoothParams *_params)
 
void bucketCompare (TreePiece *tp, GravityParticle *p, GenericTreeNode *node, GravityParticle *particles, Vector3D< double > offset, State *state)
 
int openCriterion (TreePiece *ownerTP, GenericTreeNode *node, int reqID, State *state)
 
void startNodeProcessEvent (State *state)
 
void finishNodeProcessEvent (TreePiece *owner, State *state)
 Allow book-keeping when finished with a node.
 
void nodeRecvdEvent (TreePiece *owner, int chunk, State *state, int bucket)
 Allow book-keeping of a cache receive event.
 
void recvdParticlesFull (GravityParticle *egp, int num, int chunk, int reqID, State *state, TreePiece *tp, Tree::NodeKey &remoteBucket)
 Allow book-keeping of a cache receive event.
 
void walkDone (State *state)
 
StategetNewState (int d1, int d2)
 
StategetNewState (int d1)
 
StategetNewState ()
 
- Public Member Functions inherited from SmoothCompute
 SmoothCompute (TreePiece *_tp, SmoothParams *_params)
 
int doWork (GenericTreeNode *node, TreeWalk *tw, State *state, int chunk, int reqID, bool isRoot, bool &didcomp, int awi)
 Work to be done at each node.
 
void reassoc (void *ce, int ar, Opt *o)
 
void nodeMissedEvent (int reqID, int chunk, State *state, TreePiece *tp)
 Allow book-keeping of a cache miss.
 
- Public Member Functions inherited from Compute
void setOpt (Opt *opt)
 
virtual void stateReady (State *state, TreePiece *owner, int chunk, int start, int end)
 
virtual void stateReadyPar (TreePiece *tp, int start, int end, CkVec< OffsetNode > &clist, CkVec< RemotePartInfo > &rpilist, CkVec< LocalPartInfo > &lpilist)
 
virtual void fillLists (State *state_, TreePiece *tp, int chunk, int start, int end, CkVec< OffsetNode > &clistforb, CkVec< RemotePartInfo > &rplistforb, CkVec< LocalPartInfo > &lplistforb)
 
virtual void init (void *cE, int activeRung, Opt *opt)
 Associate computeEntity (target bucket or node), activeRung and Optimization with this Compute object.
 
ComputeType getSelfType ()
 
OptType getOptType ()
 
int getActiveRung ()
 
virtual void initState (State *state)
 
virtual void recvdParticles (ExternalGravityParticle *egp, int num, int chunk, int reqID, State *state, TreePiece *tp, Tree::NodeKey &remoteBucket)
 Allow book-keeping of a cache receive event.
 
virtual void setComputeEntity (void *ce)
 
virtual void * getComputeEntity ()
 
virtual void freeState (State *state)
 

Additional Inherited Members

- Public Attributes inherited from SmoothCompute
SmoothParamsparams
 
- Public Attributes inherited from Compute
int nActive
 
- Protected Member Functions inherited from Compute
 Compute (ComputeType t)
 
- Protected Attributes inherited from SmoothCompute
TreePiecetp
 
- Protected Attributes inherited from Compute
Optopt
 
void * computeEntity
 
int activeRung
 
ComputeType type
 

Detailed Description

Computation over "inverse" nearest neighbors.

Member Function Documentation

void MarkSmoothCompute::bucketCompare ( TreePiece ownerTP,
GravityParticle p,
GenericTreeNode node,
GravityParticle particles,
Vector3D< double >  offset,
State state 
)
virtual

Test a given particle against all the priority queues in the bucket. Note that this is where the work is actually done for a MarkSmooth.

Parameters
node(local) bucket
particleslocal
offsetparticle data

Implements SmoothCompute.

void MarkSmoothCompute::startNodeProcessEvent ( State state)
inlinevirtual

virtual functions to allow for book-keeping these are essentially notifications to the Compute object from the TreeWalk that certain events have taken place - the Compute reacts accordingly.

Reimplemented from Compute.


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