changa  3.5
 All Classes Files Functions Variables Typedefs Enumerations Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BHAccreteSmoothParams Class Reference
Inheritance diagram for BHAccreteSmoothParams:
SmoothParams

Public Member Functions

 BHAccreteSmoothParams (int _iType, int am, CSM csm, double _dTime, double _dDelta, Sinks _s, double _gamma, double _dMinGasMass)
 
 PUPable_decl (BHAccreteSmoothParams)
 
 BHAccreteSmoothParams (CkMigrateMessage *m)
 
virtual void pup (PUP::er &p)
 required method for remote entry call.
 
- Public Member Functions inherited from SmoothParams
 PUPable_abstract (SmoothParams)
 
 SmoothParams (CkMigrateMessage *m)
 

Protected Member Functions

virtual void fcnSmooth (GravityParticle *p, int nSmooth, pqSmoothNode *nList)
 Function to apply to smooth particle and neighbors.
 
virtual int isSmoothActive (GravityParticle *p)
 Particle is doing a neighbor search.
 
virtual void initTreeParticle (GravityParticle *p)
 initialize particles in tree but not smoothed
 
virtual void postTreeParticle (GravityParticle *p)
 calculation on all tree particles after all walks are done
 
virtual void initSmoothParticle (GravityParticle *p)
 initialize particles to be smoothed
 
virtual void initSmoothCache (GravityParticle *p)
 initialize particles as they come into the cache More...
 
virtual void combSmoothCache (GravityParticle *p1, ExternalSmoothParticle *p2)
 combine cache copy with home particle More...
 

Protected Attributes

double a
 
double H
 
double dTime
 
double dDelta
 Big timestep to convert rungs into delta t.
 
Sinks s
 
double gamma
 
double dMinGasMass
 

Additional Inherited Members

- Public Attributes inherited from SmoothParams
int iType
 Particle type to smooth over; "TreeActive".
 
int activeRung
 Currently active rung.
 
TreePiecetp
 
int bUseBallMax
 

Member Function Documentation

void BHAccreteSmoothParams::combSmoothCache ( GravityParticle p1,
ExternalSmoothParticle p2 
)
protectedvirtual

combine cache copy with home particle

Parameters
p1pointer to "home" particle data
p2pointer to particle data being flushed back from a remote treepiece.

This method enables commutative/associative operations to be performed on remote data by combining data accumulated by a remote processor in p2 with the data on the home particle, p1. Any accumulators used in this function should be initialized in initSmoothCache() to avoid double counting.

Implements SmoothParams.

void BHAccreteSmoothParams::initSmoothCache ( GravityParticle p)
protectedvirtual

initialize particles as they come into the cache

Parameters
ppointer to incoming particle data from remote processor

Implements SmoothParams.


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