Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

ComputeHomePatches Class Reference

#include <ComputeHomePatches.h>

Inheritance diagram for ComputeHomePatches:

Compute ComputeEwald ComputeExt ComputeFullDirect ComputeGlobal ComputePme ComputeTclBC List of all members.

Public Member Functions

 ComputeHomePatches (ComputeID c)
virtual ~ComputeHomePatches ()
virtual void initialize ()
virtual void atomUpdate ()
FlagsgetFlags (void)

Protected Attributes

int useAvgPositions
int hasPatchZero
ComputeHomePatchList patchList
PatchMappatchMap

Constructor & Destructor Documentation

ComputeHomePatches::ComputeHomePatches ComputeID  c  ) 
 

Definition at line 18 of file ComputeHomePatches.C.

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

00018                                                   : Compute(c) {
00019   patchMap = PatchMap::Object();
00020   useAvgPositions = 0;
00021   hasPatchZero = 0;
00022 }

ComputeHomePatches::~ComputeHomePatches  )  [virtual]
 

Definition at line 24 of file ComputeHomePatches.C.

00025 {
00026   ;
00027 }


Member Function Documentation

void ComputeHomePatches::atomUpdate  )  [virtual]
 

Reimplemented from Compute.

Definition at line 46 of file ComputeHomePatches.C.

References Compute::atomUpdate().

00047 {
00048   Compute::atomUpdate();
00049 }

Flags* ComputeHomePatches::getFlags void   )  [inline]
 

Definition at line 86 of file ComputeHomePatches.h.

References patchList.

00086 { return &(patchList[0].p->flags); }

void ComputeHomePatches::initialize  )  [virtual]
 

Reimplemented from Compute.

Definition at line 29 of file ComputeHomePatches.C.

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

00030 {
00031   HomePatchList *a = patchMap->homePatchList();
00032   ResizeArrayIter<HomePatchElem> ai(*a);
00033 
00034   patchList.resize(0);
00035 
00036   for ( ai = ai.begin(); ai != ai.end(); ai++ ) {
00037     patchList.add(PatchElem((*ai).patch, cid, useAvgPositions));
00038     if ( (*ai).patch->getPatchID() == 0 ) hasPatchZero = 1;
00039   }
00040 
00041   setNumPatches(patchList.size());
00042 
00043   basePriority = 0;  // higher priority than pme or proxies
00044 }


Member Data Documentation

int ComputeHomePatches::hasPatchZero [protected]
 

Definition at line 75 of file ComputeHomePatches.h.

Referenced by ComputeHomePatches(), and initialize().

ComputeHomePatchList ComputeHomePatches::patchList [protected]
 

Definition at line 77 of file ComputeHomePatches.h.

Referenced by getFlags(), and initialize().

PatchMap* ComputeHomePatches::patchMap [protected]
 

Definition at line 79 of file ComputeHomePatches.h.

Referenced by ComputeHomePatches(), and initialize().

int ComputeHomePatches::useAvgPositions [protected]
 

Definition at line 74 of file ComputeHomePatches.h.

Referenced by ComputeHomePatches(), and initialize().


The documentation for this class was generated from the following files:
Generated on Tue Oct 7 04:08:16 2008 for NAMD by  doxygen 1.3.9.1