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

« back to all changes in this revision

Viewing changes to src/PERI/pair_peri_lps.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:
453
453
    if (strcmp(modify->fix[i]->style,"PERI_NEIGH") == 0) ifix_peri = i;
454
454
  if (ifix_peri == -1) error->all(FLERR,"Fix peri neigh does not exist");
455
455
 
456
 
  neighbor->request(this);
 
456
  neighbor->request(this,instance_me);
457
457
}
458
458
 
459
459
/* ----------------------------------------------------------------------
626
626
   communication routines
627
627
 ---------------------------------------------------------------------- */
628
628
 
629
 
int PairPeriLPS::pack_comm(int n, int *list, double *buf,
630
 
                           int pbc_flag, int *pbc)
 
629
int PairPeriLPS::pack_forward_comm(int n, int *list, double *buf,
 
630
                                   int pbc_flag, int *pbc)
631
631
{
632
632
  int i,j,m;
633
633
 
636
636
    j = list[i];
637
637
    buf[m++] = theta[j];
638
638
  }
639
 
  return 1;
 
639
  return m;
640
640
}
641
641
 
642
642
/* ---------------------------------------------------------------------- */
643
643
 
644
 
void PairPeriLPS::unpack_comm(int n, int first, double *buf)
 
644
void PairPeriLPS::unpack_forward_comm(int n, int first, double *buf)
645
645
{
646
646
  int i,m,last;
647
647