NAMD
Public Member Functions | Public Attributes | List of all members
PatchData Class Reference

#include <PatchData.h>

Inheritance diagram for PatchData:

Public Member Functions

 PatchData ()
 
 ~PatchData ()
 
void setDeviceKernelUpdateCounter ()
 

Public Attributes

cudaTensord_langevinPiston_strainRate
 
cudaTensord_langevinPiston_origStrainRate
 
cudaTensord_strainRate_old
 
cudaTensord_positionRescaleFactor
 
NodeReductionreduction
 
NodeReductionnodeReductionSave
 
Flags flags
 
Controllerc_out
 
Latticelat
 
Tensorfactor
 
Vectororigin
 
CollectionMasterptrCollectionMaster
 
OutputptrOutput
 
IMDOutputimd
 
PDBpdb
 
ScriptTclscript
 
CmiNodeLock printlock
 

Detailed Description

Definition at line 115 of file PatchData.h.

Constructor & Destructor Documentation

◆ PatchData()

PatchData::PatchData ( )

Definition at line 49 of file PatchData.C.

References imd, nodeReductionSave, pdb, printlock, ptrCollectionMaster, ptrOutput, and reduction.

49  {
50  ptrCollectionMaster = NULL;
51  ptrOutput = NULL;
52  imd = NULL;
53  pdb = NULL;
54 
55  reduction = new NodeReduction();
57 #ifdef NODEGROUP_FORCE_REGISTER
58  cudaBondedList = new ComputeBondedCUDA*[CkNumPes()];
59  cudaNonbondedList = new CudaComputeNonbonded*[CkNumPes()];
60  printlock = CmiCreateLock();
61  nodeLock = CmiCreateLock();
62  suspendCounter.store(CmiMyNodeSize());
63  updateCounter.store(0);
64 #endif
65 }
CmiNodeLock printlock
Definition: PatchData.h:157
IMDOutput * imd
Definition: PatchData.h:150
NodeReduction * reduction
Definition: PatchData.h:133
CollectionMaster * ptrCollectionMaster
Definition: PatchData.h:148
PDB * pdb
Definition: PatchData.h:151
Output * ptrOutput
Definition: PatchData.h:149
NodeReduction * nodeReductionSave
Definition: PatchData.h:135

◆ ~PatchData()

PatchData::~PatchData ( )

Definition at line 73 of file PatchData.C.

References nodeReductionSave, and reduction.

73  {
74  delete reduction;
75  delete nodeReductionSave;
76 #ifdef NODEGROUP_FORCE_REGISTER
77  free(h_soa_fb_x);
78  free(h_soa_fb_y);
79  free(h_soa_fb_z);
80  free(h_soa_fn_x);
81  free(h_soa_fn_y);
82  free(h_soa_fn_z);
83  free(h_soa_fs_x);
84  free(h_soa_fs_y);
85  free(h_soa_fs_z);
86  free(h_soa_pos_x);
87  free(h_soa_pos_y);
88  free(h_soa_pos_z);
89  free(h_soa_vel_x);
90  free(h_soa_vel_y);
91  free(h_soa_vel_z);
92 
93  free(h_soa_charge);
94 
95  // Device Migration
96  free(h_soa_id);
97  free(h_soa_vdwType);
98  free(h_soa_sortOrder);
99  free(h_soa_unsortOrder);
100  free(h_soa_patchCenter);
101  free(h_soa_migrationDestination);
102  free(h_soa_sortSoluteIndex);
103 
104  free(h_atomdata_AoS);
105  free(h_peer_record);
106 
107  free(h_soa_partition);
108 
109  free(h_tupleCount.bond);
110  free(h_tupleCount.angle);
111  free(h_tupleCount.dihedral);
112  free(h_tupleCount.improper);
113  free(h_tupleCount.modifiedExclusion);
114  free(h_tupleCount.exclusion);
115  free(h_tupleCount.crossterm);
116  free(h_tupleOffset.bond);
117  free(h_tupleOffset.angle);
118  free(h_tupleOffset.dihedral);
119  free(h_tupleOffset.improper);
120  free(h_tupleOffset.modifiedExclusion);
121  free(h_tupleOffset.exclusion);
122  free(h_tupleOffset.crossterm);
123  free(h_tupleDataStage.bond);
124  free(h_tupleDataStage.angle);
125  free(h_tupleDataStage.dihedral);
126  free(h_tupleDataStage.improper);
127  free(h_tupleDataStage.modifiedExclusion);
128  free(h_tupleDataStage.exclusion);
129  free(h_tupleDataStage.crossterm);
130  CmiDestroyLock(nodeLock);
131 
132 #endif
133 }
NodeReduction * reduction
Definition: PatchData.h:133
NodeReduction * nodeReductionSave
Definition: PatchData.h:135

Member Function Documentation

◆ setDeviceKernelUpdateCounter()

void PatchData::setDeviceKernelUpdateCounter ( )

Definition at line 67 of file PatchData.C.

67  {
68 #ifdef NODEGROUP_FORCE_REGISTER
69  updateCounter.store(devData.size());
70 #endif
71 }

Member Data Documentation

◆ c_out

Controller* PatchData::c_out

Definition at line 141 of file PatchData.h.

◆ d_langevinPiston_origStrainRate

cudaTensor* PatchData::d_langevinPiston_origStrainRate

Definition at line 126 of file PatchData.h.

◆ d_langevinPiston_strainRate

cudaTensor* PatchData::d_langevinPiston_strainRate

Definition at line 125 of file PatchData.h.

◆ d_positionRescaleFactor

cudaTensor* PatchData::d_positionRescaleFactor

Definition at line 128 of file PatchData.h.

◆ d_strainRate_old

cudaTensor* PatchData::d_strainRate_old

Definition at line 127 of file PatchData.h.

◆ factor

Tensor* PatchData::factor

Definition at line 144 of file PatchData.h.

◆ flags

Flags PatchData::flags

Definition at line 138 of file PatchData.h.

◆ imd

IMDOutput* PatchData::imd

Definition at line 150 of file PatchData.h.

Referenced by PatchData().

◆ lat

Lattice* PatchData::lat

Definition at line 143 of file PatchData.h.

◆ nodeReductionSave

NodeReduction* PatchData::nodeReductionSave

Definition at line 135 of file PatchData.h.

Referenced by PatchData(), and ~PatchData().

◆ origin

Vector* PatchData::origin

Definition at line 145 of file PatchData.h.

◆ pdb

PDB* PatchData::pdb

Definition at line 151 of file PatchData.h.

Referenced by PatchData().

◆ printlock

CmiNodeLock PatchData::printlock

Definition at line 157 of file PatchData.h.

Referenced by PatchData().

◆ ptrCollectionMaster

CollectionMaster* PatchData::ptrCollectionMaster

Definition at line 148 of file PatchData.h.

Referenced by PatchData().

◆ ptrOutput

Output* PatchData::ptrOutput

Definition at line 149 of file PatchData.h.

Referenced by PatchData().

◆ reduction

NodeReduction* PatchData::reduction

◆ script

ScriptTcl* PatchData::script

Definition at line 154 of file PatchData.h.

Referenced by after_backend_init(), and Node::getScript().


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