GridMsg Class Reference

List of all members.

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, msm::Grid< T >::data(), gdata, idnum, nbytes, nextent_i, nextent_j, nextent_k, nlower_i, nlower_j, nlower_k, seqnum, and msm::Grid< T >::set().

Referenced by MsmC1HermiteBlock::addCharge(), MsmBlock::addCharge(), ComputeMsmMgr::addPotential(), MsmC1HermiteBlock::addPotential(), MsmBlock::addPotential(), MsmGridCutoffKernel< C1Vector, C1Matrix >::compute(), and MsmC1HermiteGridCutoff::compute_specialized().

00141                                                {
00142       id = idnum;
00143       g.set(nlower_i, nextent_i, nlower_j, nextent_j,
00144           nlower_k, nextent_k);
00145       seq = seqnum;
00146       ASSERT(g.data().len()*sizeof(T) == nbytes);
00147       memcpy(g.data().buffer(), gdata, nbytes);
00148     }

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 MsmC1HermiteGridCutoff::compute(), MsmGridCutoff::compute(), MsmC1HermiteBlock::gridCutoff(), MsmBlock::gridCutoff(), msm::PatchData::sendCharge(), msm::PatchData::sendChargeC1Hermite(), MsmC1HermiteBlock::sendDownPotential(), MsmBlock::sendDownPotential(), MsmC1HermiteBlock::sendPatch(), MsmBlock::sendPatch(), MsmC1HermiteBlock::sendUpCharge(), MsmBlock::sendUpCharge(), MsmC1HermiteBlock::sumReducedPotential(), and MsmBlock::sumReducedPotential().

00126                                                    {
00127       idnum = id;
00128       nlower_i = g.lower().i;
00129       nlower_j = g.lower().j;
00130       nlower_k = g.lower().k;
00131       nextent_i = g.extent().i;
00132       nextent_j = g.extent().j;
00133       nextent_k = g.extent().k;
00134       nbytes = g.data().len()*sizeof(T);
00135       seqnum = seq;
00136       memcpy(gdata, g.data().buffer(), nbytes);
00137     }


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:
Generated on Sat Sep 23 01:17:19 2017 for NAMD by  doxygen 1.4.7