Public Member Functions | Protected Attributes | List of all members
ComputeHomePatches Class Reference

#include <ComputeHomePatches.h>

Inheritance diagram for ComputeHomePatches:
Compute ComputeEwald ComputeExt ComputeFmmSerial ComputeFullDirect ComputeGBISser ComputeGlobal ComputeMoa ComputeMsm ComputeMsmSerial ComputeQM ComputeTclBC

Public Member Functions

 ComputeHomePatches (ComputeID c)
virtual ~ComputeHomePatches ()
virtual void initialize ()
virtual void atomUpdate ()
FlagsgetFlags (void)
- Public Member Functions inherited from Compute
 Compute (ComputeID)
int type ()
virtual ~Compute ()
void setNumPatches (int n)
int getNumPatches ()
virtual void patchReady (PatchID, int doneMigration, int seq)
virtual int noWork ()
virtual void doWork ()
virtual void finishPatch (int)
int sequence (void)
int priority (void)
int getGBISPhase (void)
virtual void gbisP2PatchReady (PatchID, int seq)
virtual void gbisP3PatchReady (PatchID, int seq)

Protected Attributes

int useAvgPositions
int hasPatchZero
ComputeHomePatchList patchList
- Protected Attributes inherited from Compute
int computeType
int basePriority
int gbisPhase
int gbisPhasePriority [3]

Additional Inherited Members

- Public Attributes inherited from Compute
const ComputeID cid
LDObjHandle ldObjHandle
LocalWorkMsg *const localWorkMsg
- Protected Member Functions inherited from Compute
void enqueueWork ()

Detailed Description

Definition at line 72 of file ComputeHomePatches.h.

Constructor & Destructor Documentation

ComputeHomePatches::ComputeHomePatches ( ComputeID  c)

Definition at line 18 of file ComputeHomePatches.C.

References hasPatchZero, PatchMap::Object(), patchMap, and useAvgPositions.

18  : Compute(c) {
20  useAvgPositions = 0;
21  hasPatchZero = 0;
22 }
static PatchMap * Object()
Definition: PatchMap.h:27
Definition: Compute.C:33
ComputeHomePatches::~ComputeHomePatches ( )

Definition at line 24 of file ComputeHomePatches.C.

25 {
26  ;
27 }

Member Function Documentation

void ComputeHomePatches::atomUpdate ( void  )

Reimplemented from Compute.

Definition at line 44 of file ComputeHomePatches.C.

References Compute::atomUpdate().

45 {
47 }
virtual void atomUpdate()
Definition: Compute.h:59
Flags* ComputeHomePatches::getFlags ( void  )

Definition at line 86 of file ComputeHomePatches.h.

References patchList.

86 { return &(patchList[0].p->flags); }
ComputeHomePatchList patchList
void ComputeHomePatches::initialize ( void  )

Reimplemented from Compute.

Reimplemented in ComputeQM.

Definition at line 29 of file ComputeHomePatches.C.

References UniqueSortedArray< Type >::add(), ResizeArrayIter< Type >::begin(), ResizeArrayIter< Type >::end(), hasPatchZero, PatchMap::homePatchList(), patchList, patchMap, ResizeArray< T >::resize(), Compute::setNumPatches(), ResizeArray< T >::size(), and useAvgPositions.

Referenced by ComputeQM::initialize().

30 {
34  patchList.resize(0);
36  for ( ai = ai.begin(); ai != ai.end(); ai++ ) {
37  patchList.add(PatchElem((*ai).patch, this, useAvgPositions));
38  if ( (*ai).patch->getPatchID() == 0 ) hasPatchZero = 1;
39  }
42 }
void setNumPatches(int n)
Definition: Compute.h:52
ComputeHomePatchList patchList
HomePatchList * homePatchList()
Definition: PatchMap.C:438
int add(const Elem &elem)
void resize(int i)
Definition: ResizeArray.h:84
int size(void) const
Definition: ResizeArray.h:127

Member Data Documentation

int ComputeHomePatches::hasPatchZero
ComputeHomePatchList ComputeHomePatches::patchList
PatchMap* ComputeHomePatches::patchMap

Definition at line 79 of file ComputeHomePatches.h.

Referenced by ComputeHomePatches(), and initialize().

int ComputeHomePatches::useAvgPositions

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