4
4
#include < istream>
5
5
6
6
namespace tinker {
7
- // / \ingroup ff
7
+ // / \addtogroup ff
8
+ // / \{
9
+
8
10
void nData (RcOp);
9
- // / \ingroup ff
10
11
void massData (RcOp);
11
- // / \ingroup ff
12
12
void xyzData (RcOp);
13
13
14
- // / \ingroup ff
15
- // / \brief Update #x, #y, #z by #xpos, #ypos, and #zpos.
14
+ // / Update #x, #y, #z by #xpos, #ypos, and #zpos.
16
15
// / If #xpos etc. are only aliases, return directly.
17
16
void copyPosToXyz ();
18
17
19
- // / \ingroup ff
20
- // / \brief Update #x, #y, #z by #xpos, #ypos, and #zpos.
18
+ // / Update #x, #y, #z by #xpos, #ypos, and #zpos.
21
19
// / If #xpos etc. are only aliases, return directly.
22
- // / \param refreshNBList If `true`, refresh the neighbor lists by the end.
20
+ // / \param refreshNBList If `true`, refresh the neighbor lists at the end.
23
21
void copyPosToXyz (bool refreshNBList);
24
22
25
- // / \ingroup ff
26
- // / \brief Finds the geometric center of each molecule and translate any stray
23
+ // / Finds the geometric center of each molecule and translate any stray
27
24
// / molecules back into the periodic box on GPU.
28
25
// / \note
29
26
// / - Updating #x, #y, #z is the goal.
@@ -32,67 +29,43 @@ void copyPosToXyz(bool refreshNBList);
32
29
// / - Tinker uses centers of mass.
33
30
void bounds ();
34
31
35
- // / \ingroup ff
36
32
void readFrameCopyinToXyz (std::istream& input, int & done);
37
- }
38
33
39
34
// ====================================================================//
40
35
// //
41
36
// Global Variables //
42
37
// //
43
38
// ====================================================================//
44
39
45
- namespace tinker {
46
- // / \ingroup ff
47
- // / \brief Number of atoms.
48
- TINKER_EXTERN int padded_n;
49
- // / \ingroup ff
50
- // / \brief Number of atoms padded by #WARP_SIZE.
51
- // / \see WARP_SIZE
52
- TINKER_EXTERN int n;
53
- // / \ingroup ff
54
- // / \brief Number of the trajectory frames.
55
- TINKER_EXTERN int trajn;
40
+ TINKER_EXTERN int padded_n; // / \brief Number of atoms padded by #WARP_SIZE.
41
+ TINKER_EXTERN int n; // / \brief Number of atoms.
42
+ TINKER_EXTERN int trajn; // / \brief Number of the trajectory frames.
43
+
44
+ TINKER_EXTERN real* x; // /< Current coordinates used in energy evaluation and neighbor lists.
45
+ TINKER_EXTERN real* y; // /< Current coordinates used in energy evaluation and neighbor lists.
46
+ TINKER_EXTERN real* z; // /< Current coordinates used in energy evaluation and neighbor lists.
47
+ TINKER_EXTERN real* trajx; // /< Coordinates of all the trajectory frames.
48
+ TINKER_EXTERN real* trajy; // /< Coordinates of all the trajectory frames.
49
+ TINKER_EXTERN real* trajz; // /< Coordinates of all the trajectory frames.
56
50
57
- // / \ingroup ff
58
- // / \{
59
- // / \var x
60
- // / \brief Current coordinates used in energy evaluation and neighbor lists.
61
- // / \var y
62
- // / \copydoc x
63
- // / \var z
64
- // / \copydoc x
65
- // /
66
- // / \var trajx
67
- // / \brief Coordinates of all the trajectory frames.
68
- // / \var trajy
69
- // / \copydoc trajx
70
- // / \var trajz
71
- // / \copydoc trajx
72
- // /
73
51
// / \var xpos
74
- // / \brief Coordinates used in integrators.
52
+ // / Coordinates used in integrators.
75
53
// / \note
76
54
// / - New arrays will be allocated only if `sizeof(pos_prec) > sizeof(real)`,
77
55
// / otherwise, they will be aliases of #x, #y, and #z.
78
- // / - Whenever #xpos, #ypos, #zpos get updated by integrators, barostats etc. ,
56
+ // / - Whenever #xpos, #ypos, #zpos get updated by the integrator ,
79
57
// / #x, #y, #z must be updated immediately.
80
58
// / \see pos_prec
81
59
// / \see real
82
60
// / \var ypos
83
61
// / \copydoc xpos
84
62
// / \var zpos
85
63
// / \copydoc xpos
86
- // / \}
87
- TINKER_EXTERN real *x, *y, *z;
88
- TINKER_EXTERN real *trajx, *trajy, *trajz;
89
64
TINKER_EXTERN pos_prec *xpos, *ypos, *zpos;
90
65
static_assert (sizeof (pos_prec) >= sizeof (real), " Type pos_prec cannot be shorter than type real." );
91
66
92
- // / \ingroup ff
93
- // / \brief Atomic mass.
94
- TINKER_EXTERN double * mass;
95
- // / \ingroup ff
96
- // / \brief Inversed atomic mass.
97
- TINKER_EXTERN double * massinv;
67
+ TINKER_EXTERN double * mass; // /< Atomic mass.
68
+ TINKER_EXTERN double * massinv; // /< Inversed atomic mass.
69
+
70
+ // / \}
98
71
}
0 commit comments