the lammps_gather_atom*() and lammps_scatter_atom() library functions are not compatible with -DLAMMPS_BIGBIG. divert to dummy functions resulting in error exists.

This commit is contained in:
Axel Kohlmeyer 2019-04-02 11:39:46 -04:00
parent 764fb2522b
commit fd7c680654
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 42 additions and 0 deletions

View File

@ -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