NAMD
ComputeHomePatches.C
Go to the documentation of this file.
1 
7 #include "InfoStream.h"
8 #include "Node.h"
9 #include "PatchMap.h"
10 #include "ComputeHomePatches.h"
11 #include "PatchMgr.h"
12 #include "HomePatchList.h"
13 #include "Molecule.h"
14 #include "ReductionMgr.h"
15 #define MIN_DEBUG_LEVEL 3
16 #include "Debug.h"
17 
20  useAvgPositions = 0;
21  hasPatchZero = 0;
22 }
23 
25 {
26  ;
27 }
28 
30 {
33 
34  patchList.resize(0);
35 
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  }
40 
42 }
43 
45 {
47 }
48 
void setNumPatches(int n)
Definition: Compute.h:52
int ComputeID
Definition: NamdTypes.h:183
static PatchMap * Object()
Definition: PatchMap.h:27
ComputeHomePatchList patchList
HomePatchList * homePatchList()
Definition: PatchMap.C:438
ResizeArrayIter< T > end(void) const
ComputeHomePatches(ComputeID c)
virtual void atomUpdate()
int add(const Elem &elem)
void resize(int i)
Definition: ResizeArray.h:84
virtual void initialize()
virtual void atomUpdate()
Definition: Compute.h:59
int size(void) const
Definition: ResizeArray.h:127
ResizeArrayIter< T > begin(void) const