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

« back to all changes in this revision

Viewing changes to src/REAX/pair_reax.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:
557
557
    error->all(FLERR,"Pair style reax requires atom IDs");
558
558
  if (force->newton_pair == 0)
559
559
    error->all(FLERR,"Pair style reax requires newton pair on");
 
560
  if (!atom->q_flag)
 
561
    error->all(FLERR,"Pair style reax requires atom attribute q");
560
562
  if (strcmp(update->unit_style,"real") != 0 && comm->me == 0)
561
563
    error->warning(FLERR,"Not using real units with pair reax");
562
564
 
563
 
  int irequest = neighbor->request(this);
 
565
  int irequest = neighbor->request(this,instance_me);
564
566
  neighbor->requests[irequest]->newton = 2;
565
567
 
566
568
  FORTRAN(readc, READC)();
621
623
 
622
624
/* ---------------------------------------------------------------------- */
623
625
 
624
 
int PairREAX::pack_comm(int n, int *list, double *buf, int pbc_flag, int *pbc)
 
626
int PairREAX::pack_forward_comm(int n, int *list, double *buf, 
 
627
                                int pbc_flag, int *pbc)
625
628
{
626
629
  int i,j,m;
627
630
 
640
643
    }
641
644
  }
642
645
 
643
 
  return 1;
 
646
  return m;
644
647
}
645
648
 
646
649
/* ---------------------------------------------------------------------- */
647
650
 
648
 
void PairREAX::unpack_comm(int n, int first, double *buf)
 
651
void PairREAX::unpack_forward_comm(int n, int first, double *buf)
649
652
{
650
653
  int i,m,last;
651
654
 
673
676
  for (i = first; i < last; i++)
674
677
    buf[m++] = wcg[i];
675
678
 
676
 
  return 1;
 
679
  return m;
677
680
}
678
681
 
679
682
/* ---------------------------------------------------------------------- */