~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to src/PERI/pair_peri_ves.cpp

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2015-04-29 23:44:49 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20150429234449-mbhy9utku6hp6oq8
Tags: 0~20150313.gitfa668e1-1
Upload into unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
512
512
    if (strcmp(modify->fix[i]->style,"PERI_NEIGH") == 0) ifix_peri = i;
513
513
  if (ifix_peri == -1) error->all(FLERR,"Fix peri neigh does not exist");
514
514
 
515
 
  neighbor->request(this);
 
515
  neighbor->request(this,instance_me);
516
516
}
517
517
 
518
518
/* ----------------------------------------------------------------------
696
696
   communication routines
697
697
---------------------------------------------------------------------- */
698
698
 
699
 
int PairPeriVES::pack_comm(int n, int *list, double *buf,
700
 
                           int pbc_flag, int *pbc)
 
699
int PairPeriVES::pack_forward_comm(int n, int *list, double *buf,
 
700
                                   int pbc_flag, int *pbc)
701
701
{
702
702
  int i,j,m;
703
703
 
706
706
    j = list[i];
707
707
    buf[m++] = theta[j];
708
708
  }
709
 
  return 1;
 
709
  return m;
710
710
}
711
711
 
712
712
/* ---------------------------------------------------------------------- */
713
713
 
714
 
void PairPeriVES::unpack_comm(int n, int first, double *buf)
 
714
void PairPeriVES::unpack_forward_comm(int n, int first, double *buf)
715
715
{
716
716
  int i,m,last;
717
717