NAMD
Public Member Functions | Public Attributes | List of all members
GridMsg Class Reference
Inheritance diagram for GridMsg:

Public Member Functions

template<class T >
void put (const msm::Grid< T > &g, int id, int seq)
 
template<class T >
void get (msm::Grid< T > &g, int &id, int &seq)
 

Public Attributes

char * gdata
 
int idnum
 
int nlower_i
 
int nlower_j
 
int nlower_k
 
int nextent_i
 
int nextent_j
 
int nextent_k
 
int nbytes
 
int seqnum
 

Detailed Description

Definition at line 111 of file ComputeMsm.C.

Member Function Documentation

template<class T >
void GridMsg::get ( msm::Grid< T > &  g,
int &  id,
int &  seq 
)
inline

Definition at line 141 of file ComputeMsm.C.

References ASSERT, gdata, idnum, nbytes, nextent_i, nextent_j, nextent_k, nlower_i, nlower_j, nlower_k, and seqnum.

Referenced by MsmBlock::addCharge(), MsmC1HermiteBlock::addCharge(), ComputeMsmMgr::addPotential(), MsmBlock::addPotential(), MsmC1HermiteBlock::addPotential(), and MsmGridCutoffKernel< Float, Float >::compute().

141  {
142  id = idnum;
145  seq = seqnum;
146  ASSERT(g.data().len()*sizeof(T) == nbytes);
147  memcpy(g.data().buffer(), gdata, nbytes);
148  }
int nlower_i
Definition: ComputeMsm.C:115
const Array< T > & data() const
Definition: MsmMap.h:666
int nextent_i
Definition: ComputeMsm.C:118
int seqnum
Definition: ComputeMsm.C:122
int idnum
Definition: ComputeMsm.C:114
int nbytes
Definition: ComputeMsm.C:121
void set(int pia, int pni, int pja, int pnj, int pka, int pnk)
Definition: MsmMap.h:608
#define ASSERT(E)
int nlower_k
Definition: ComputeMsm.C:117
int nextent_j
Definition: ComputeMsm.C:119
char * gdata
Definition: ComputeMsm.C:113
int nlower_j
Definition: ComputeMsm.C:116
int nextent_k
Definition: ComputeMsm.C:120
template<class T >
void GridMsg::put ( const msm::Grid< T > &  g,
int  id,
int  seq 
)
inline

Definition at line 126 of file ComputeMsm.C.

References msm::Grid< T >::data(), msm::IndexRange::extent(), gdata, idnum, msm::IndexRange::lower(), nbytes, nextent_i, nextent_j, nextent_k, nlower_i, nlower_j, nlower_k, and seqnum.

Referenced by MsmBlock::gridCutoff(), MsmC1HermiteBlock::gridCutoff(), msm::PatchData::sendCharge(), msm::PatchData::sendChargeC1Hermite(), MsmBlock::sendDownPotential(), MsmC1HermiteBlock::sendDownPotential(), MsmBlock::sendPatch(), MsmC1HermiteBlock::sendPatch(), MsmBlock::sendUpCharge(), MsmC1HermiteBlock::sendUpCharge(), MsmBlock::sumReducedPotential(), and MsmC1HermiteBlock::sumReducedPotential().

126  {
127  idnum = id;
128  nlower_i = g.lower().i;
129  nlower_j = g.lower().j;
130  nlower_k = g.lower().k;
131  nextent_i = g.extent().i;
132  nextent_j = g.extent().j;
133  nextent_k = g.extent().k;
134  nbytes = g.data().len()*sizeof(T);
135  seqnum = seq;
136  memcpy(gdata, g.data().buffer(), nbytes);
137  }
int nlower_i
Definition: ComputeMsm.C:115
const Array< T > & data() const
Definition: MsmMap.h:666
int nextent_i
Definition: ComputeMsm.C:118
int seqnum
Definition: ComputeMsm.C:122
int idnum
Definition: ComputeMsm.C:114
int nbytes
Definition: ComputeMsm.C:121
Ivec extent() const
Definition: MsmMap.h:445
int nlower_k
Definition: ComputeMsm.C:117
int nextent_j
Definition: ComputeMsm.C:119
char * gdata
Definition: ComputeMsm.C:113
int nlower_j
Definition: ComputeMsm.C:116
int nextent_k
Definition: ComputeMsm.C:120
Ivec lower() const
Definition: MsmMap.h:444

Member Data Documentation

char* GridMsg::gdata

Definition at line 113 of file ComputeMsm.C.

Referenced by get(), and put().

int GridMsg::idnum

Definition at line 114 of file ComputeMsm.C.

Referenced by get(), and put().

int GridMsg::nbytes

Definition at line 121 of file ComputeMsm.C.

Referenced by get(), and put().

int GridMsg::nextent_i

Definition at line 118 of file ComputeMsm.C.

Referenced by get(), and put().

int GridMsg::nextent_j

Definition at line 119 of file ComputeMsm.C.

Referenced by get(), and put().

int GridMsg::nextent_k

Definition at line 120 of file ComputeMsm.C.

Referenced by get(), and put().

int GridMsg::nlower_i

Definition at line 115 of file ComputeMsm.C.

Referenced by get(), and put().

int GridMsg::nlower_j

Definition at line 116 of file ComputeMsm.C.

Referenced by get(), and put().

int GridMsg::nlower_k

Definition at line 117 of file ComputeMsm.C.

Referenced by get(), and put().

int GridMsg::seqnum

Definition at line 122 of file ComputeMsm.C.

Referenced by get(), and put().


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