Merge branch 'master' into last-minute-fixes

This commit is contained in:
Axel Kohlmeyer
2021-08-31 16:03:50 -04:00
6 changed files with 170 additions and 3 deletions

View File

@ -1315,3 +1315,13 @@ void CommKokkos::grow_swap(int n)
memory->grow(maxsendlist,n,"comm:maxsendlist");
for (int i=0;i<maxswap;i++) maxsendlist[i]=size;
}
/* ----------------------------------------------------------------------
forward communication of N values in per-atom array
------------------------------------------------------------------------- */
void CommKokkos::forward_comm_array(int nsize, double **array)
{
k_sendlist.sync<LMPHostType>();
CommBrick::forward_comm_array(nsize,array);
}

View File

@ -51,6 +51,8 @@ class CommKokkos : public CommBrick {
void forward_comm_dump(class Dump *); // forward comm from a Dump
void reverse_comm_dump(class Dump *); // reverse comm from a Dump
void forward_comm_array(int, double **); // forward comm of array
template<class DeviceType> void forward_comm_device(int dummy);
template<class DeviceType> void reverse_comm_device();
template<class DeviceType> void forward_comm_pair_device(Pair *pair);

View File

@ -44,7 +44,7 @@ class CommBrick : public Comm {
virtual void forward_comm_dump(class Dump *); // forward comm from a Dump
virtual void reverse_comm_dump(class Dump *); // reverse comm from a Dump
void forward_comm_array(int, double **); // forward comm of array
virtual void forward_comm_array(int, double **); // forward comm of array
int exchange_variable(int, double *, double *&); // exchange on neigh stencil
void *extract(const char *, int &);
virtual double memory_usage();