-
Notifications
You must be signed in to change notification settings - Fork 6
/
fix_eph_gpu.h
62 lines (44 loc) · 1.08 KB
/
fix_eph_gpu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
* This fix is a rewrite of our previous USER-EPH (a mod of fix_ttm) code and is based on our
* PRB 94, 024305 (2016) paper
**/
/*
* Authors of the extension Artur Tamm, Alfredo Caro, Alfredo Correa, Mattias Klintenberg
* e-mail: [email protected]
*/
#ifdef FIX_EPH_GPU
#ifdef FIX_CLASS
FixStyle(eph/gpu,FixEPHGPU)
#else
#ifndef LMP_FIX_EPH_GPU_H
#define LMP_FIX_EPH_GPU_H
// external headers
// lammps headers
// internal headers
#include "fix_eph.h"
#include "eph_gpu.h"
namespace LAMMPS_NS {
// START GLOBAL THINGS
// END GLOBAL THINGS
class FixEPHGPU : public FixEPH {
public:
FixEPHGPU(class LAMMPS *, int, char **); // constructor
~FixEPHGPU(); // destructor
void grow_arrays(int) override;
void post_force(int) override;
void reset_dt() override;
private:
EPH_GPU eph_gpu;
void calculate_environment();
void force_prl();
void transfer_neighbour_list();
int nmax; // size of arrays
int* number_neigh;
int* index_neigh;
size_t n_neighs;
int* neighs;
};
}
#endif
#endif
#endif