mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9478 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
2a614f4523
commit
41801fa762
|
@ -369,8 +369,8 @@ int AtomVecAngleCuda::pack_exchange(int dim, double *buf)
|
|||
{
|
||||
int dm= modify->fix[atom->extra_grow[iextra]]->pack_exchange(i,&buf_p[m]);
|
||||
m+=dm;
|
||||
nextra+=dm;
|
||||
if(i<nlocal)modify->fix[atom->extra_grow[iextra]]->copy_arrays(copylist[j],i,delflag);
|
||||
nextra+=dm;
|
||||
if(i<nlocal)modify->fix[atom->extra_grow[iextra]]->copy_arrays(copylist[j],i,1);
|
||||
if(m>*maxsend) {grow_send(m,buf_pointer,1); buf_p=*buf_pointer;}
|
||||
}
|
||||
|
||||
|
|
|
@ -330,7 +330,7 @@ int AtomVecAtomicCuda::pack_exchange(int dim, double *buf)
|
|||
int dm = modify->fix[atom->extra_grow[iextra]]->pack_exchange(i,&((*buf_pointer)[m]));
|
||||
m+=dm;
|
||||
nextra+=dm;
|
||||
if(i<nlocal)modify->fix[atom->extra_grow[iextra]]->copy_arrays(copylist[j],i,delflag);
|
||||
if(i<nlocal)modify->fix[atom->extra_grow[iextra]]->copy_arrays(copylist[j],i,1);
|
||||
if(m>*maxsend) grow_send(m,buf_pointer,1);
|
||||
}
|
||||
(*buf_pointer)[j+1] = nextra;
|
||||
|
|
|
@ -336,7 +336,7 @@ int AtomVecChargeCuda::pack_exchange(int dim, double *buf)
|
|||
int dm = modify->fix[atom->extra_grow[iextra]]->pack_exchange(i,&((*buf_pointer)[m]));
|
||||
m+=dm;
|
||||
nextra+=dm;
|
||||
if(i<nlocal)modify->fix[atom->extra_grow[iextra]]->copy_arrays(copylist[j],i,delflag);
|
||||
if(i<nlocal)modify->fix[atom->extra_grow[iextra]]->copy_arrays(copylist[j],i,1);
|
||||
if(m>*maxsend) grow_send(m,buf_pointer,1);
|
||||
}
|
||||
(*buf_pointer)[j+1] = nextra;
|
||||
|
|
|
@ -60,8 +60,8 @@ using namespace LAMMPS_NS;
|
|||
#define BUF_FLOAT double
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
AtomVecFullCuda::AtomVecFullCuda(LAMMPS *lmp, int narg, char **arg) :
|
||||
AtomVecFull(lmp, narg, arg)
|
||||
AtomVecFullCuda::AtomVecFullCuda(LAMMPS *lmp) :
|
||||
AtomVecFull(lmp)
|
||||
{
|
||||
cuda = lmp->cuda;
|
||||
if(cuda == NULL)
|
||||
|
@ -393,7 +393,7 @@ int AtomVecFullCuda::pack_exchange(int dim, double *buf)
|
|||
int dm= modify->fix[atom->extra_grow[iextra]]->pack_exchange(i,&buf_p[m]);
|
||||
m+=dm;
|
||||
nextra+=dm;
|
||||
if(i<nlocal)modify->fix[atom->extra_grow[iextra]]->copy_arrays(copylist[j],i,delflag);
|
||||
if(i<nlocal)modify->fix[atom->extra_grow[iextra]]->copy_arrays(copylist[j],i,1);
|
||||
if(m>*maxsend) {grow_send(m,buf_pointer,1); buf_p=*buf_pointer;}
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ namespace LAMMPS_NS {
|
|||
|
||||
class AtomVecFullCuda : public AtomVecFull {
|
||||
public:
|
||||
AtomVecFullCuda(class LAMMPS *, int, char **);
|
||||
AtomVecFullCuda(class LAMMPS *);
|
||||
virtual ~AtomVecFullCuda() {}
|
||||
void grow_copylist(int n);
|
||||
void grow_send(int n,double** buf_send,int flag);
|
||||
|
|
Loading…
Reference in New Issue