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

the lammps_gather_atom*() and lammps_scatter_atom() library functions are not...

the lammps_gather_atom*() and lammps_scatter_atom() library functions are not compatible with -DLAMMPS_BIGBIG. divert to dummy functions resulting in error exists.
parent 764fb252
Loading
Loading
Loading
Loading
+42 −0
Changes for src/library.cpp: 42 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -801,6 +801,13 @@ void lammps_reset_box(void *ptr, double *boxlo, double *boxhi,
     Allreduce to sum vector into data across all procs
------------------------------------------------------------------------- */

#if defined(LAMMPS_BIGBIG)
void lammps_gather_atoms(void * /*ptr*/, char * /*name */,
                         int /*type*/, int /*count*/, void * /*data*/)
{
  lmp->error->all(FLERR,"Library function lammps_gather_atoms() not compatible with -DLAMMPS_BIGBIG");
}
#else
void lammps_gather_atoms(void *ptr, char *name,
                         int type, int count, void *data)
{
@@ -905,6 +912,7 @@ void lammps_gather_atoms(void *ptr, char *name,
  }
  END_CAPTURE
}
#endif

/* ----------------------------------------------------------------------
   gather the named atom-based entity for all atoms
@@ -927,6 +935,13 @@ void lammps_gather_atoms(void *ptr, char *name,
     Allgather Nlocal atoms from each proc into data
------------------------------------------------------------------------- */

#if defined(LAMMPS_BIGBIG)
void lammps_gather_atoms_concat(void * /*ptr*/, char * /*name */,
                                int /*type*/, int /*count*/, void * /*data*/)
{
  lmp->error->all(FLERR,"Library function lammps_gather_atoms_concat() not compatible with -DLAMMPS_BIGBIG");
}
#else
void lammps_gather_atoms_concat(void *ptr, char *name,
                                int type, int count, void *data)
{
@@ -1047,6 +1062,7 @@ void lammps_gather_atoms_concat(void *ptr, char *name,
  }
  END_CAPTURE
}
#endif

/* ----------------------------------------------------------------------
   gather the named atom-based entity for a subset of atoms
@@ -1071,6 +1087,14 @@ void lammps_gather_atoms_concat(void *ptr, char *name,
     Allreduce to sum vector into data across all procs
------------------------------------------------------------------------- */

#if defined(LAMMPS_BIGBIG)
void lammps_gather_atoms_subset(void * /*ptr*/, char * /*name */,
                                int /*type*/, int /*count*/,
                                int /*ndata*/, int * /*ids*/, void * /*data*/)
{
  lmp->error->all(FLERR,"Library function lammps_gather_atoms_subset() not compatible with -DLAMMPS_BIGBIG");
}
#else
void lammps_gather_atoms_subset(void *ptr, char *name,
                                int type, int count,
                                int ndata, int *ids, void *data)
@@ -1188,6 +1212,7 @@ void lammps_gather_atoms_subset(void *ptr, char *name,
  }
  END_CAPTURE
}
#endif

/* ----------------------------------------------------------------------
   scatter the named atom-based entity in data to all atoms
@@ -1205,6 +1230,13 @@ void lammps_gather_atoms_subset(void *ptr, char *name,
     loop over Natoms, if I own atom ID, set its values from data
------------------------------------------------------------------------- */

#if defined(LAMMPS_BIGBIG)
void lammps_scatter_atoms(void * /*ptr*/, char * /*name */,
                          int /*type*/, int /*count*/, void * /*data*/)
{
  lmp->error->all(FLERR,"Library function lammps_scatter_atoms() not compatible with -DLAMMPS_BIGBIG");
}
#else
void lammps_scatter_atoms(void *ptr, char *name,
                          int type, int count, void *data)
{
@@ -1299,6 +1331,7 @@ void lammps_scatter_atoms(void *ptr, char *name,
  }
  END_CAPTURE
}
#endif

/* ----------------------------------------------------------------------
   scatter the named atom-based entity in data to a subset of atoms
@@ -1318,6 +1351,14 @@ void lammps_scatter_atoms(void *ptr, char *name,
     loop over Ndata, if I own atom ID, set its values from data
------------------------------------------------------------------------- */

#if defined(LAMMPS_BIGBIG)
void lammps_scatter_atoms_subset(void * /*ptr*/, char * /*name */,
                                int /*type*/, int /*count*/,
                                int /*ndata*/, int * /*ids*/, void * /*data*/)
{
  lmp->error->all(FLERR,"Library function lammps_scatter_atoms_subset() not compatible with -DLAMMPS_BIGBIG");
}
#else
void lammps_scatter_atoms_subset(void *ptr, char *name,
                                 int type, int count,
                                 int ndata, int *ids, void *data)
@@ -1420,6 +1461,7 @@ void lammps_scatter_atoms_subset(void *ptr, char *name,
  }
  END_CAPTURE
}
#endif

/* ----------------------------------------------------------------------
   create N atoms and assign them to procs based on coords