Commit ae7b18fb authored by jrgissing's avatar jrgissing
Browse files

only one call to extract needed

parent efd81a28
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -961,6 +961,10 @@ void FixBondReact::superimpose_algorithm()
  local_num_mega = 0;
  ghostly_num_mega = 0;

  // indicates local ghosts of other procs
  int tmp;
  localsendlist = (int *) comm->extract("localsendlist",tmp);

  // quick description of important global indices you'll see floating about:
  // 'pion' is the pioneer loop index
  // 'neigh' in the first neighbor index
@@ -1863,10 +1867,6 @@ void FixBondReact::glove_ghostcheck()

  int ghostly = 0;
  if (comm->style == 0) {
    int tmp;
    int *localsendlist = (int *) comm->extract("localsendlist",tmp);

    // create an indexed sendlist
    for (int i = 0; i < onemol->natoms; i++) {
      int ilocal = atom->map(glove[i][1]);
      if (ilocal >= atom->nlocal || localsendlist[ilocal] == 1) {
+1 −0
Original line number Diff line number Diff line
@@ -122,6 +122,7 @@ class FixBondReact : public Fix {
  tagint **local_mega_glove; // consolidation local of reaction instances
  tagint **ghostly_mega_glove; // consolidation nonlocal of reaction instances
  tagint **global_mega_glove; // consolidation (inter-processor) of gloves containing nonlocal atoms
  int *localsendlist; // indicates ghosts of other procs
  int local_num_mega; // num of local reaction instances
  int ghostly_num_mega; // num of ghostly reaction instances
  int global_megasize; // num of reaction instances in global_mega_glove