ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
neighbor_atom.h
Go to the documentation of this file.
1#ifndef NEIGHBOR_ATOM_H
2#define NEIGHBOR_ATOM_H
3
5
6#include <vector>
7
16{
17public:
19 double position_x;
20
22 double position_y;
23
25 double position_z;
26
29
32
35
38
49 NeighborAtom(double x,
50 double y,
51 double z,
52 int type,
53 int index,
55 : position_x(x), position_y(y), position_z(z),
56 atom_type(type), atom_index(index), atom_id(id), owner_rank(0) {}
57
58 NeighborAtom(double x,
59 double y,
60 double z,
61 int type,
62 int index,
64 int owner_rank_in)
65 : position_x(x),
66 position_y(y),
67 position_z(z),
68 atom_type(type),
69 atom_index(index),
70 atom_id(id),
71 owner_rank(owner_rank_in)
72 {
73 }
74};
75
76#endif // NEIGHBOR_ATOM_H
double position_x
X coordinate of the atom in Cartesian coordinates.
Definition neighbor_atom.h:19
NeighborAtom(double x, double y, double z, int type, int index, ModuleNeighList::LocalAtomIndex id, int owner_rank_in)
Definition neighbor_atom.h:58
int atom_index
Index of the atom within its type.
Definition neighbor_atom.h:31
ModuleNeighList::LocalAtomIndex atom_id
Rank-local atom ID used by the neighbor list.
Definition neighbor_atom.h:34
int owner_rank
MPI rank that owns the primary atom.
Definition neighbor_atom.h:37
double position_z
Z coordinate of the atom in Cartesian coordinates.
Definition neighbor_atom.h:25
NeighborAtom(double x, double y, double z, int type, int index, ModuleNeighList::LocalAtomIndex id)
Construct a NeighborAtom.
Definition neighbor_atom.h:49
int atom_type
Atom type index.
Definition neighbor_atom.h:28
double position_y
Y coordinate of the atom in Cartesian coordinates.
Definition neighbor_atom.h:22
std::int32_t LocalAtomIndex
Definition neighbor_types.h:13