Atom data will not be copied multiple times if multiple styles need it.

Adding back missing extern from nbor.
This commit is contained in:
W. Michael Brown
2011-01-24 17:33:38 -05:00
parent 6018dd02b1
commit 45971bf732
3 changed files with 104 additions and 69 deletions

View File

@ -183,6 +183,9 @@ bool PairGPUAtomT::init(const int inum, const int nall, const bool charge,
clear();
bool success=true;
_x_avail=false;
_q_avail=false;
_quat_avail=false;
_gpu_nbor=gpu_nbor;
_bonds=bonds;
_charge=charge;
@ -516,6 +519,9 @@ double PairGPUAtomT::energy_virial(double *eatom, double **vatom,
template <class numtyp, class acctyp>
void PairGPUAtomT::get_answers(double **f, double **tor) {
_x_avail=false;
_q_avail=false;
_quat_avail=false;
acctyp *ap=host_ans.begin();
if (_gpu_nbor) {
for (int i=0; i<_inum; i++) {