Unverified Commit a9c376f2 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

use tagint instead of int when communicating atom ids

parent 88d160f8
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -637,14 +637,14 @@ void FixPIMD::comm_exec(double **ptr)
    if(nsend > max_nsend)
    {
      max_nsend = nsend+200;
      tag_send = (int*) memory->srealloc(tag_send, sizeof(int)*max_nsend, "FixPIMD:tag_send");
      tag_send = (tagint*) memory->srealloc(tag_send, sizeof(tagint)*max_nsend, "FixPIMD:tag_send");
      buf_send = (double*) memory->srealloc(buf_send, sizeof(double)*max_nsend*3, "FixPIMD:x_send");
    }

    // send tags

    MPI_Sendrecv( atom->tag, nlocal, MPI_INT, plan_send[iplan], 0,
                  tag_send,  nsend,  MPI_INT, plan_recv[iplan], 0, universe->uworld, MPI_STATUS_IGNORE);
    MPI_Sendrecv( atom->tag, nlocal, MPI_LMP_TAGINT, plan_send[iplan], 0,
                  tag_send,  nsend,  MPI_LMP_TAGINT, plan_recv[iplan], 0, universe->uworld, MPI_STATUS_IGNORE);

    // wrap positions

+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ class FixPIMD : public Fix {
  /* inter-partition communication */

  int max_nsend;
  int* tag_send;
  tagint* tag_send;
  double *buf_send;

  int max_nlocal;