Files
lammps/examples/COUPLE/library/one2many.h
2023-04-14 11:00:59 -06:00

25 lines
333 B
C++

#ifndef ONE2MANY_H
#define ONE2MANY_H
#include <mpi.h>
#include <map>
class One2Many {
public:
One2Many(MPI_Comm);
~One2Many();
void setup(int, int, int *);
void scatter(double *, int, double *);
protected:
int me,nprocs;
MPI_Comm comm;
class MemoryLib *memory;
std::map<int,int> *hash;
int nsrc;
};
#endif